We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
webdrivers
1 parent 5869f1f commit 222477eCopy full SHA for 222477e
packages/@vue/cli-plugin-e2e-nightwatch/generator/index.js
@@ -11,6 +11,13 @@ module.exports = (api, { webdrivers }) => {
11
// Use devDependencies to store latest version number so as to automate update
12
const pluginDeps = require('../package.json').devDependencies
13
14
+ // In some legacy presets, they may forget to add a `webdrivers` field
15
+ // (which works fine before PR #5528).
16
+ // So we should add both drivers by default in that circumstance.
17
+ if (typeof webdrivers === 'undefined') {
18
+ webdrivers = ['firefox', 'chrome']
19
+ }
20
+
21
if (webdrivers && webdrivers.includes('firefox')) {
22
devDependencies.geckodriver = pluginDeps.geckodriver
23
}
0 commit comments