File tree 4 files changed +11
-13
lines changed
4 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 27
27
"precypress:open:debug" : " yarn ensure-deps" ,
28
28
"cypress:open:debug" : " node ./scripts/debug.js cypress:open" ,
29
29
"precypress:run" : " yarn ensure-deps" ,
30
- "cypress:run" : " cypress run-ct --dev" ,
30
+ "cypress:run" : " cypress run --dev" ,
31
31
"precypress:run:debug" : " yarn ensure-deps" ,
32
32
"cypress:run:debug" : " node ./scripts/debug.js cypress:run" ,
33
33
"cypress:verify" : " cypress verify --dev" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { BrowserWindow } from 'electron'
5
5
import Debug from 'debug'
6
6
import cwd from '../cwd'
7
7
import savedState from '../saved_state'
8
- import { getPathToDesktopIndex } from '@packages/resolve-dist'
9
8
10
9
const debug = Debug ( 'cypress:server:windows' )
11
10
@@ -32,7 +31,6 @@ const getUrl = function (type, port?: number) {
32
31
throw new Error ( `No acceptable window type found for: '${ type } '` )
33
32
}
34
33
}
35
-
36
34
const getByType = ( type ) => {
37
35
return windows [ type ]
38
36
}
Original file line number Diff line number Diff line change @@ -7,19 +7,20 @@ export = (mode, options) => {
7
7
return require ( './smoke_test' ) . run ( options )
8
8
}
9
9
10
- if ( mode === 'run' && options . testingType === 'e2e' ) {
10
+ if ( mode === 'run' ) {
11
+ if ( options . testingType === 'component' ) {
12
+ return require ( './run-ct' ) . run ( options )
13
+ }
14
+
11
15
return require ( './run-e2e' ) . run ( options )
12
16
}
13
17
14
- if ( mode === 'run' && options . testingType === 'component' ) {
15
- return require ( './run-ct' ) . run ( options )
16
- }
18
+ if ( mode === 'interactive' ) {
19
+ if ( options . testingType === 'component' && ! process . env . LAUNCHPAD ) {
20
+ return require ( './interactive-ct' ) . run ( options )
21
+ }
17
22
18
- if ( mode === 'interactive' && options . testingType === ' e2e' ) {
23
+ // Either launchpad or straight to e2e tests
19
24
return require ( './interactive-e2e' ) . run ( options )
20
25
}
21
-
22
- if ( mode === 'interactive' && options . testingType === 'component' ) {
23
- return require ( './interactive-ct' ) . run ( options )
24
- }
25
26
}
Original file line number Diff line number Diff line change @@ -211,7 +211,6 @@ module.exports = {
211
211
// set in case we
212
212
// bypassed the cli
213
213
cwd : process . cwd ( ) ,
214
- testingType : 'e2e' ,
215
214
} )
216
215
. mapValues ( coerceUtil . coerce )
217
216
. value ( )
You can’t perform that action at this time.
0 commit comments