From: Eduardo San Martin Morote Date: Wed, 8 Jun 2022 15:11:54 +0000 (+0200) Subject: chore: refactor paths X-Git-Tag: v4.1.0~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1888f1da7817df7890a7df6b0a6c63c475d2d2f2;p=thirdparty%2Fvuejs%2Frouter.git chore: refactor paths --- diff --git a/packages/router/e2e/nightwatch.config.js b/packages/router/e2e/nightwatch.config.js index 0b27b3cd..c50f8983 100644 --- a/packages/router/e2e/nightwatch.config.js +++ b/packages/router/e2e/nightwatch.config.js @@ -13,6 +13,9 @@ const browserDefaults = { }, } +const geckodriverPath = require('geckodriver').path +const chromedriverPath = require('chromedriver').path + /** @type {import('nightwatch').NightwatchOptions} */ module.exports = { src_folders: ['e2e/specs'], @@ -29,8 +32,8 @@ module.exports = { port: 4444, server_path: require('selenium-server').path, cli_args: { - 'webdriver.chrome.driver': require('chromedriver').path, - 'webdriver.gecko.driver': require('geckodriver').path, + 'webdriver.chrome.driver': chromedriverPath, + 'webdriver.gecko.driver': geckodriverPath, }, }, @@ -83,7 +86,7 @@ module.exports = { browserName: 'firefox', acceptSslCerts: true, 'moz:firefoxOptions': { - binary: require('geckodriver').path, + binary: geckodriverPath, args: [], }, },