mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-05 11:30:06 -05:00
fix(e2e): shouldn't install webdrivers for unchecked browsers on creation (#5736)
This commit is contained in:
@@ -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']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user