fix(e2e-nightwatch): check for correct flag name (#5016)

* fix(e2e-nightwatch): check for correct flag name

flag is documented as `--use-selenium` but we checked for `args['with-selenium']`
fix #5015

* test(e2e-nightwatch): selenium test
uses correct flag now
This commit is contained in:
Thorsten Lünborg
2020-01-03 07:51:47 +01:00
committed by Haoqun Jiang
parent 4087220b86
commit bc2dc96e6e
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ describe('nightwatch e2e plugin', () => {
})
test('should run single test with custom nightwatch.json and selenium server', async () => {
await project.run(`vue-cli-service test:e2e --headless --with-selenium -t tests/e2e/specs/test.js`)
await project.run(`vue-cli-service test:e2e --headless --use-selenium -t tests/e2e/specs/test.js`)
let results = await project.read('test_results.json')
results = JSON.parse(results)

View File

@@ -65,7 +65,7 @@ module.exports = (api, options) => {
rawArgs.push('--env', 'chrome')
}
if (args['with-selenium']) {
if (args['use-selenium']) {
process.env.VUE_NIGHTWATCH_USE_SELENIUM = '1'
}