diff --git a/packages/@vue/cli-plugin-e2e-nightwatch/ui.js b/packages/@vue/cli-plugin-e2e-nightwatch/ui.js index 462974858..eca856cf0 100644 --- a/packages/@vue/cli-plugin-e2e-nightwatch/ui.js +++ b/packages/@vue/cli-plugin-e2e-nightwatch/ui.js @@ -9,10 +9,22 @@ module.exports = api => { type: 'input', default: '', description: 'org.vue.nightwatch.tasks.test.url' + }, { + name: 'config', + type: 'input', + default: '', + description: 'org.vue.nightwatch.tasks.test.config' + }, { + name: 'env', + type: 'input', + default: 'chrome', + description: 'org.vue.nightwatch.tasks.test.env' } ], onBeforeRun: ({ answers, args }) => { if (answers.url) args.push('--url', answers.url) + if (answers.config) args.push('--config', answers.config) + if (answers.env) args.push('--env', answers.env) } }) } diff --git a/packages/@vue/cli-ui/locales/en.json b/packages/@vue/cli-ui/locales/en.json index e3c8e25e1..93a7e9f79 100644 --- a/packages/@vue/cli-ui/locales/en.json +++ b/packages/@vue/cli-ui/locales/en.json @@ -613,7 +613,9 @@ "tasks": { "test": { "description": "Run e2e tests with nightwatch", - "url": "Run e2e tests against given url instead of auto-starting dev server" + "url": "Run e2e tests against given url instead of auto-starting dev server", + "config": "Use custom nightwatch config file (overrides internals)", + "env": "Comma-delimited browser envs to run in" } } },