File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,17 @@ export class DataContext extends DataContextShell {
64
64
}
65
65
66
66
if ( this . config . launchArgs . testingType ) {
67
- toAwait . push ( this . actions . wizard . setTestingType ( this . config . launchArgs . testingType ) )
67
+ // It should be possible to skip the first step in the wizard, if the
68
+ // user already told us the testing type via command line argument
69
+ this . actions . wizard . setTestingType ( this . config . launchArgs . testingType )
70
+ this . actions . wizard . navigate ( 'forward' )
68
71
}
69
72
70
73
if ( IS_DEV_ENV ) {
71
74
this . actions . dev . watchForRelaunch ( )
72
75
}
73
76
74
- return Promise . all ( toAwait ) . then ( this . actions . wizard . navigate ( 'forward' ) )
77
+ return Promise . all ( toAwait )
75
78
}
76
79
77
80
get os ( ) {
Original file line number Diff line number Diff line change @@ -438,7 +438,6 @@ describe('lib/util/args', () => {
438
438
config : this . config ,
439
439
invokedFromCli : false ,
440
440
spec : this . specs ,
441
- testingType : 'e2e' ,
442
441
} )
443
442
} )
444
443
@@ -459,7 +458,6 @@ describe('lib/util/args', () => {
459
458
`--config=${ mergedConfig } ` ,
460
459
`--cwd=${ cwd } ` ,
461
460
`--spec=${ JSON . stringify ( this . specs ) } ` ,
462
- '--testingType=e2e' ,
463
461
] )
464
462
465
463
expect ( argsUtil . toObject ( args ) ) . to . deep . eq ( {
@@ -468,7 +466,6 @@ describe('lib/util/args', () => {
468
466
invokedFromCli : true ,
469
467
config : this . config ,
470
468
spec : this . specs ,
471
- testingType : 'e2e' ,
472
469
} )
473
470
} )
474
471
@@ -480,7 +477,6 @@ describe('lib/util/args', () => {
480
477
cwd,
481
478
_ : [ ] ,
482
479
invokedFromCli : false ,
483
- testingType : 'e2e' ,
484
480
config : { } ,
485
481
} )
486
482
} )
@@ -508,7 +504,6 @@ describe('lib/util/args', () => {
508
504
appPath : '/Applications/Cypress.app' ,
509
505
execPath : '/Applications/Cypress.app' ,
510
506
invokedFromCli : false ,
511
- testingType : 'e2e' ,
512
507
updating : true ,
513
508
} )
514
509
} )
@@ -534,7 +529,6 @@ describe('lib/util/args', () => {
534
529
appPath : 'a' ,
535
530
execPath : 'e' ,
536
531
invokedFromCli : false ,
537
- testingType : 'e2e' ,
538
532
updating : true ,
539
533
} )
540
534
} )
You can’t perform that action at this time.
0 commit comments