Skip to content

Commit

Permalink
fix(e2e): shouldn't install webdrivers for unchecked browsers on crea…
Browse files Browse the repository at this point in the history
…tion (#5736)
  • Loading branch information
sodatea committed Aug 3, 2020
1 parent de3d062 commit 1030f39
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions packages/@vue/cli/lib/promptModules/__tests__/e2e.spec.js
Expand Up @@ -54,7 +54,9 @@ test('nightwatch', async () => {

const expectedOptions = {
plugins: {
'@vue/cli-plugin-e2e-nightwatch': {}
'@vue/cli-plugin-e2e-nightwatch': {
webdrivers: ['chrome', 'firefox']
}
}
}

Expand Down Expand Up @@ -87,7 +89,9 @@ test('webdriverio', async () => {

const expectedOptions = {
plugins: {
'@vue/cli-plugin-e2e-webdriverio': {}
'@vue/cli-plugin-e2e-webdriverio': {
webdrivers: ['chrome', 'firefox']
}
}
}

Expand Down
8 changes: 6 additions & 2 deletions packages/@vue/cli/lib/promptModules/e2e.js
Expand Up @@ -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
}
}
})
}

0 comments on commit 1030f39

Please sign in to comment.