Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/@vue/cli-plugin-e2e-nightwatch/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
}
4 changes: 3 additions & 1 deletion packages/@vue/cli-ui/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
},
Expand Down