Skip to content

Commit c89d6cf

Browse files
committed
Skip testing type step when --e2e or --component passed in
1 parent bc3bc6e commit c89d6cf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/data-context/src/DataContext.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ export class DataContext extends DataContextShell {
6161
toAwait.push(this.actions.project.setActiveProject(this.config.launchArgs.projectRoot))
6262
}
6363

64-
return Promise.all(toAwait)
64+
if (this.config.launchArgs.testingType) {
65+
toAwait.push(this.actions.wizard.setTestingType(this.config.launchArgs.testingType))
66+
}
67+
68+
return Promise.all(toAwait).then(this.actions.wizard.navigate('forward'))
6569
}
6670

6771
get os () {

packages/server/lib/gui/windows.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { BrowserWindow } from 'electron'
55
import Debug from 'debug'
66
import cwd from '../cwd'
77
import savedState from '../saved_state'
8+
import { getPathToDesktopIndex } from '@packages/resolve-dist'
89

910
const debug = Debug('cypress:server:windows')
1011

0 commit comments

Comments
 (0)