@@ -31,7 +31,7 @@ describe('Config files error handling', () => {
31
31
32
32
cy . findByRole ( 'button' , { name : 'Try again' } ) . click ( )
33
33
34
- cy . get ( 'h1' , { timeout : 10000 } ) . should ( 'contain ', 'Welcome to Cypress' )
34
+ cy . contains ( 'h1' , 'Welcome to Cypress' )
35
35
} )
36
36
37
37
it ( 'shows the upgrade screen if there is a legacy config file' , ( ) => {
@@ -70,7 +70,7 @@ describe('Config files error handling', () => {
70
70
71
71
cy . findByRole ( 'button' , { name : 'Try again' } ) . click ( )
72
72
73
- cy . get ( 'h1' ) . should ( 'contain ', 'Welcome to Cypress' )
73
+ cy . contains ( 'h1' , 'Welcome to Cypress' )
74
74
} )
75
75
76
76
it ( 'handles deprecated config fields' , ( ) => {
@@ -92,7 +92,7 @@ describe('Config files error handling', () => {
92
92
93
93
cy . findByRole ( 'button' , { name : 'Try again' } ) . click ( )
94
94
95
- cy . get ( 'h1' , { timeout : 10000 } ) . should ( 'contain ', 'Choose a browser' )
95
+ cy . contains ( 'h1' , 'Choose a browser' )
96
96
} )
97
97
} )
98
98
@@ -165,7 +165,7 @@ describe('Launchpad: Error System Tests', () => {
165
165
166
166
cy . findByRole ( 'button' , { name : 'Try again' } ) . click ( )
167
167
168
- cy . get ( 'h1' ) . should ( 'contain ', 'Welcome to Cypress' )
168
+ cy . contains ( 'h1' , 'Welcome to Cypress' )
169
169
} )
170
170
171
171
it ( `clears the error correctly after first 'try again' attempt` , ( ) => {
@@ -190,7 +190,7 @@ describe('Launchpad: Error System Tests', () => {
190
190
191
191
cy . findByRole ( 'button' , { name : 'Try again' } ) . click ( )
192
192
193
- cy . get ( 'h1' ) . should ( 'contain ', 'Welcome to Cypress' )
193
+ cy . contains ( 'h1' , 'Welcome to Cypress' )
194
194
} )
195
195
196
196
it ( 'shows correct user file instead of node file' , ( ) => {
@@ -279,7 +279,7 @@ describe('setupNodeEvents', () => {
279
279
280
280
cy . findByRole ( 'button' , { name : 'Try again' } ) . click ( )
281
281
282
- cy . get ( 'h1' , { timeout : 10000 } ) . should ( 'contain ', 'Choose a browser' )
282
+ cy . contains ( 'h1' , 'Choose a browser' )
283
283
} )
284
284
285
285
it ( 'handles multiple config errors and then recovers' , ( ) => {
@@ -310,7 +310,7 @@ describe('setupNodeEvents', () => {
310
310
} )
311
311
312
312
cy . findByRole ( 'button' , { name : 'Try again' } ) . click ( )
313
- cy . get ( 'h1' , { timeout : 10000 } ) . should ( 'contain ', 'Choose a browser' )
313
+ cy . contains ( 'h1' , 'Choose a browser' )
314
314
cy . get ( '[data-cy="alert"]' ) . should ( 'contain' , 'Warning: Cannot Connect Base Url Warning' )
315
315
} )
316
316
0 commit comments