fix(e2e): shouldn't install webdrivers for unchecked browsers on creation (#5736)

This commit is contained in:
Haoqun Jiang
2020-08-03 15:20:29 +08:00
committed by GitHub
parent de3d0622bb
commit 1030f39599
2 changed files with 12 additions and 4 deletions
@@ -54,7 +54,9 @@ test('nightwatch', async () => {
const expectedOptions = {
plugins: {
'@vue/cli-plugin-e2e-nightwatch': {}
'@vue/cli-plugin-e2e-nightwatch': {
webdrivers: ['chrome', 'firefox']
}
}
}
@@ -87,7 +89,9 @@ test('webdriverio', async () => {
const expectedOptions = {
plugins: {
'@vue/cli-plugin-e2e-webdriverio': {}
'@vue/cli-plugin-e2e-webdriverio': {
webdrivers: ['chrome', 'firefox']
}
}
}
+6 -2
View File
@@ -58,9 +58,13 @@ module.exports = cli => {
if (answers.e2e === 'cypress') {
options.plugins['@vue/cli-plugin-e2e-cypress'] = {}
} else if (answers.e2e === 'nightwatch') {
options.plugins['@vue/cli-plugin-e2e-nightwatch'] = {}
options.plugins['@vue/cli-plugin-e2e-nightwatch'] = {
webdrivers: answers.webdrivers
}
} else if (answers.e2e === 'webdriverio') {
options.plugins['@vue/cli-plugin-e2e-webdriverio'] = {}
options.plugins['@vue/cli-plugin-e2e-webdriverio'] = {
webdrivers: answers.webdrivers
}
}
})
}