mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-11 19:51:52 -05:00
feat(ui): Add 'config' and 'env' options to nightwatch ui prompts (#1646)
* feat(ui): Add 'config' and 'env' options to nightwatch ui prompts * feat(ui): Localize 'config' and 'env' option descriptions for nightwatch ui prompts
This commit is contained in:
committed by
Guillaume Chau
parent
7d635008ac
commit
77fc6d9f62
@@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user