File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
cli-plugin-e2e-nightwatch Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,22 @@ module.exports = api => {
9
9
type : 'input' ,
10
10
default : '' ,
11
11
description : 'org.vue.nightwatch.tasks.test.url'
12
+ } , {
13
+ name : 'config' ,
14
+ type : 'input' ,
15
+ default : '' ,
16
+ description : 'org.vue.nightwatch.tasks.test.config'
17
+ } , {
18
+ name : 'env' ,
19
+ type : 'input' ,
20
+ default : 'chrome' ,
21
+ description : 'org.vue.nightwatch.tasks.test.env'
12
22
}
13
23
] ,
14
24
onBeforeRun : ( { answers, args } ) => {
15
25
if ( answers . url ) args . push ( '--url' , answers . url )
26
+ if ( answers . config ) args . push ( '--config' , answers . config )
27
+ if ( answers . env ) args . push ( '--env' , answers . env )
16
28
}
17
29
} )
18
30
}
Original file line number Diff line number Diff line change 613
613
"tasks" : {
614
614
"test" : {
615
615
"description" : " Run e2e tests with nightwatch" ,
616
- "url" : " Run e2e tests against given url instead of auto-starting dev server"
616
+ "url" : " Run e2e tests against given url instead of auto-starting dev server" ,
617
+ "config" : " Use custom nightwatch config file (overrides internals)" ,
618
+ "env" : " Comma-delimited browser envs to run in"
617
619
}
618
620
}
619
621
},
You can’t perform that action at this time.
0 commit comments