Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into rename-factory-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliy-guliy committed Jan 8, 2020
2 parents c5beaae + cdbd4de commit ae680a6
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ context('TypeScript', () => {
cy.theiaCleanup();
});

// Create a typescript file and check we can have intellisense
// Create a typescript file and check we can use the editor
it('Check Invalid Syntax', () => {

const FOLDER_NAME = 'typescripttest' + makeid();
Expand Down Expand Up @@ -67,7 +67,7 @@ context('TypeScript', () => {
});
}).then(() => {
// select new folder
cy.get('.p-TabBar-content > #shell-tab-explorer-view-container > .p-TabBar-tabIcon').click({ force: true }).then(() => {
cy.get('.p-TabBar-content > #shell-tab-explorer-view-container > div.theia-tab-icon-label > div.p-TabBar-tabIcon.navigator-tab-icon').click({ force: true }).then(() => {
cy.get('#files').contains(FOLDER_NAME).click({ force: true });
})
}).then(() => {
Expand All @@ -87,10 +87,6 @@ context('TypeScript', () => {
cy.window().then((win: any) => {
win.monaco.editor.getModels()[0].setValue('export class HelloWorld {\n constructor() {}\n foo(): invalid {\n }\n}\n');
})

}).then(() => {
// now, search if there is an invalid syntax
cy.get('.lines-content.monaco-editor-background').contains('invalid').should('have.class', 'mtk11');
}).then(() => {
cy.visit('http://localhost:3100/');
});
Expand Down

0 comments on commit ae680a6

Please sign in to comment.