File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
packages/graphiql/cypress Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ describe('GraphiQL keyboard interactions', () => {
15
15
cy . get ( '@escapeHandler' ) . should ( 'have.been.called' ) ;
16
16
} ) ;
17
17
18
- // TODO recheck this test
19
18
it ( 'Does prevent the escape key from being handled outside the editor if closing the autocomplete dialog' , ( ) => {
20
19
cy . visit ( '/' ) ;
21
20
const mockFn = cy . stub ( ) . as ( 'escapeHandler' ) ;
@@ -26,10 +25,10 @@ describe('GraphiQL keyboard interactions', () => {
26
25
}
27
26
} ) ;
28
27
} ) ;
29
-
30
28
cy . get ( '.graphiql-query-editor textarea' ) . type ( '{\n t' , { force : true } ) ;
29
+ // Wait autocomplete dialog to appear
30
+ cy . get ( '.monaco-list' ) . should ( 'exist' ) ;
31
31
cy . get ( '.graphiql-query-editor textarea' ) . type ( '{esc}' ) ;
32
-
33
32
cy . get ( '@escapeHandler' ) . should ( 'not.have.been.called' ) ;
34
33
} ) ;
35
34
} ) ;
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ Cypress.Commands.add(
170
170
} ) ;
171
171
expect ( markers . length ) . to . be . greaterThan ( 0 ) ;
172
172
cy . contains ( text ) . trigger ( 'mousemove' ) ;
173
- cy . contains ( message , { timeout : 5_000 } ) ;
173
+ cy . contains ( message , { timeout : 6_000 } ) ;
174
174
expect ( markers [ 0 ] . message ) . eq ( message ) ;
175
175
const markerSeverity = {
176
176
error : MarkerSeverity . Error ,
You can’t perform that action at this time.
0 commit comments