Skip to content

Commit 77fc6d9

Browse files
rokkieAkryum
authored andcommitted
feat(ui): Add 'config' and 'env' options to nightwatch ui prompts (vuejs#1646)
* feat(ui): Add 'config' and 'env' options to nightwatch ui prompts * feat(ui): Localize 'config' and 'env' option descriptions for nightwatch ui prompts
1 parent 7d63500 commit 77fc6d9

File tree

2 files changed

+15
-1
lines changed
  • packages/@vue

2 files changed

+15
-1
lines changed

packages/@vue/cli-plugin-e2e-nightwatch/ui.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,22 @@ module.exports = api => {
99
type: 'input',
1010
default: '',
1111
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'
1222
}
1323
],
1424
onBeforeRun: ({ answers, args }) => {
1525
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)
1628
}
1729
})
1830
}

packages/@vue/cli-ui/locales/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,9 @@
613613
"tasks": {
614614
"test": {
615615
"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"
617619
}
618620
}
619621
},

0 commit comments

Comments
 (0)