1
1
import type { FoundBrowser } from '@packages/types'
2
2
3
- // TODO: fix flaky tests https://github.com/cypress-io/cypress/issues/23418
4
- describe . skip ( 'Choose a browser page' , ( ) => {
3
+ describe ( 'Choose a browser page' , ( ) => {
5
4
beforeEach ( ( ) => {
6
5
cy . scaffoldProject ( 'launchpad' )
7
6
} )
@@ -15,8 +14,7 @@ describe.skip('Choose a browser page', () => {
15
14
} )
16
15
} )
17
16
18
- // TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23158
19
- it ( 'preselects browser that is provided through the command line' , { retries : 15 } , ( ) => {
17
+ it ( 'preselects browser that is provided through the command line' , ( ) => {
20
18
cy . withCtx ( ( ctx , o ) => {
21
19
// stub launching project since we have `--browser --testingType --project` here
22
20
o . sinon . stub ( ctx . _apis . projectApi , 'launchProject' ) . resolves ( )
@@ -25,6 +23,7 @@ describe.skip('Choose a browser page', () => {
25
23
cy . openProject ( 'launchpad' , [ '--e2e' , '--browser' , 'edge' ] )
26
24
27
25
cy . visitLaunchpad ( )
26
+ cy . skipWelcome ( )
28
27
29
28
cy . get ( 'h1' ) . should ( 'contain' , 'Choose a browser' )
30
29
@@ -40,6 +39,7 @@ describe.skip('Choose a browser page', () => {
40
39
it ( 'shows warning when launched with --browser name that cannot be matched to found browsers' , ( ) => {
41
40
cy . openProject ( 'launchpad' , [ '--e2e' , '--browser' , 'doesNotExist' ] )
42
41
cy . visitLaunchpad ( )
42
+ cy . skipWelcome ( )
43
43
44
44
cy . get ( 'h1' ) . should ( 'contain' , 'Choose a browser' )
45
45
cy . get ( '[data-cy="alert-header"]' ) . should ( 'contain' , 'Warning: Browser Not Found' )
@@ -63,13 +63,15 @@ describe.skip('Choose a browser page', () => {
63
63
cy . openProject ( 'launchpad' , [ '--e2e' , '--browser' , path ] )
64
64
65
65
cy . visitLaunchpad ( )
66
+ cy . skipWelcome ( )
66
67
67
68
cy . get ( 'h1' ) . should ( 'contain' , 'Choose a browser' )
68
69
69
70
cy . get ( '[data-cy="alert-header"]' ) . should ( 'contain' , 'Warning: Browser Not Found' )
70
71
cy . get ( '[data-cy="alert-body"]' ) . as ( 'AlertBody' )
71
72
. should ( 'contain' , `We could not identify a known browser at the path you provided: ${ path } ` )
72
- . validateExternalLink ( {
73
+
74
+ cy . validateExternalLink ( {
73
75
href : 'https://on.cypress.io/troubleshooting-launching-browsers' ,
74
76
} )
75
77
@@ -96,6 +98,7 @@ describe.skip('Choose a browser page', () => {
96
98
cy . openProject ( 'launchpad' , [ '--e2e' ] )
97
99
98
100
cy . visitLaunchpad ( )
101
+ cy . skipWelcome ( )
99
102
100
103
cy . get ( 'h1' ) . should ( 'contain' , 'Choose a browser' )
101
104
@@ -112,6 +115,7 @@ describe.skip('Choose a browser page', () => {
112
115
cy . openProject ( 'launchpad' , [ '--e2e' ] )
113
116
114
117
cy . visitLaunchpad ( )
118
+ cy . skipWelcome ( )
115
119
116
120
cy . get ( 'h1' ) . should ( 'contain' , 'Choose a browser' )
117
121
@@ -164,6 +168,7 @@ describe.skip('Choose a browser page', () => {
164
168
cy . openProject ( 'launchpad' , [ '--e2e' ] )
165
169
166
170
cy . visitLaunchpad ( )
171
+ cy . skipWelcome ( )
167
172
168
173
cy . get ( 'h1' ) . should ( 'contain' , 'Choose a browser' )
169
174
@@ -188,6 +193,7 @@ describe.skip('Choose a browser page', () => {
188
193
cy . openProject ( 'launchpad' , [ '--e2e' ] )
189
194
190
195
cy . visitLaunchpad ( )
196
+ cy . skipWelcome ( )
191
197
192
198
cy . get ( 'h1' ) . should ( 'contain' , 'Choose a browser' )
193
199
@@ -205,6 +211,7 @@ describe.skip('Choose a browser page', () => {
205
211
cy . openProject ( 'launchpad' , [ '--e2e' ] )
206
212
207
213
cy . visitLaunchpad ( )
214
+ cy . skipWelcome ( )
208
215
209
216
cy . withCtx ( ( ctx ) => {
210
217
ctx . actions . app . setBrowserStatus ( 'open' )
@@ -217,11 +224,11 @@ describe.skip('Choose a browser page', () => {
217
224
cy . wait ( '@closeBrowser' )
218
225
} )
219
226
220
- // TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23220
221
227
it ( 'performs mutation to focus open browser when focus button is pressed' , { retries : 15 } , ( ) => {
222
228
cy . openProject ( 'launchpad' , [ '--e2e' ] )
223
229
224
230
cy . visitLaunchpad ( )
231
+ cy . skipWelcome ( )
225
232
226
233
cy . withCtx ( ( ctx ) => {
227
234
ctx . actions . app . setBrowserStatus ( 'open' )
@@ -262,6 +269,7 @@ describe.skip('Choose a browser page', () => {
262
269
} )
263
270
264
271
cy . visitLaunchpad ( )
272
+ cy . skipWelcome ( )
265
273
266
274
cy . get ( 'h1' ) . should ( 'contain' , 'Choose a browser' )
267
275
@@ -270,11 +278,11 @@ describe.skip('Choose a browser page', () => {
270
278
} )
271
279
} )
272
280
273
- // TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23158
274
281
it ( 'subscribes to changes to browserStatus/activeBrowser through the browserStatusUpdated subscription' , { retries : 15 } , ( ) => {
275
282
cy . openProject ( 'launchpad' , [ '--e2e' ] )
276
283
277
284
cy . visitLaunchpad ( )
285
+ cy . skipWelcome ( )
278
286
279
287
cy . get ( 'h1' ) . should ( 'contain' , 'Choose a browser' )
280
288
@@ -306,6 +314,7 @@ describe.skip('Choose a browser page', () => {
306
314
it ( 'should return to welcome screen if user modifies the config file to not include the current testing type and recover' , ( ) => {
307
315
cy . openProject ( 'launchpad' , [ '--e2e' ] )
308
316
cy . visitLaunchpad ( )
317
+ cy . skipWelcome ( )
309
318
310
319
cy . get ( 'h1' ) . should ( 'contain' , 'Choose a browser' )
311
320
@@ -314,7 +323,7 @@ describe.skip('Choose a browser page', () => {
314
323
} )
315
324
316
325
cy . get ( 'h1' ) . should ( 'contain' , 'Welcome to Cypress!' )
317
- cy . contains ( '[data-cy-testingtype="e2e"]' , 'Not configured ' )
326
+ cy . contains ( '[data-cy-testingtype="e2e"]' , 'Not Configured ' )
318
327
319
328
cy . withCtx ( async ( ctx ) => {
320
329
await ctx . actions . file . writeFileInProject ( 'cypress.config.js' ,
@@ -327,7 +336,7 @@ describe.skip('Choose a browser page', () => {
327
336
} )
328
337
329
338
cy . get ( 'h1' ) . should ( 'contain' , 'Welcome to Cypress!' )
330
- cy . get ( '[data-cy-testingtype="e2e"]' ) . should ( 'not.contain' , 'Not configured ' )
339
+ cy . get ( '[data-cy-testingtype="e2e"]' ) . should ( 'not.contain' , 'Not Configured ' )
331
340
} )
332
341
} )
333
342
@@ -343,6 +352,7 @@ describe.skip('Choose a browser page', () => {
343
352
cy . openProject ( 'launchpad' , [ '--e2e' ] )
344
353
345
354
cy . visitLaunchpad ( )
355
+ cy . skipWelcome ( )
346
356
347
357
cy . get ( 'h1' ) . should ( 'contain' , 'Choose a browser' )
348
358
0 commit comments