Skip to content

Commit ced7d94

Browse files
committed
fix(eval_spec): css selector changes
close #509
1 parent 7263fed commit ced7d94

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

cypress/integration/02_eval_spec.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ context('Evaluation', () => {
1010
describe('The Theia Panel', () => {
1111
it('should be accessible from command panel', () => {
1212
// invoke command panel and run the command
13-
cy.get('body').trigger('keydown', { keyCode: 112, which: 112 })
14-
.trigger('keyup', { keyCode: 112, which: 112 })
15-
cy.get('.quick-open-overlay .quick-open-input input')
13+
if (Cypress.platform === 'darwin') {
14+
cy.get('body')
15+
.type('{shift+meta+P}')
16+
} else {
17+
cy.get('body')
18+
.type('{shift+ctrl+P}')
19+
}
20+
cy.get('input.input')
1621
.clear()
1722
.type('>Toggle Evaluation View{enter}')
1823
// check the panel
@@ -43,7 +48,7 @@ context('Evaluation', () => {
4348
.contains('file')
4449
.click()
4550
})
46-
51+
4752
it('should have proper header and footer', () => {
4853
cy.get('.x-header > button')
4954
.should('be.disabled')
@@ -54,13 +59,13 @@ context('Evaluation', () => {
5459
.should('be.disabled')
5560
.should('contain', 'New file')
5661
})
57-
62+
5863
it('should disappear again', () => {
5964
// invoke command panel and run the command again
6065
cy.get('body')
6166
.trigger('keydown', { keyCode: 112, which: 112 })
6267
.trigger('keyup', { keyCode: 112, which: 112 })
63-
cy.get('.quick-open-overlay .quick-open-input input')
68+
cy.get('input.input')
6469
.clear()
6570
.type('>Toggle Evaluation View{enter}')
6671
// check the panel

0 commit comments

Comments
 (0)