]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: refactor paths
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 8 Jun 2022 15:11:54 +0000 (17:11 +0200)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Thu, 30 Jun 2022 07:59:00 +0000 (09:59 +0200)
packages/router/e2e/nightwatch.config.js

index 0b27b3cdb128cbfb2a6496b1ddcc3e3045d738de..c50f8983b005ae743ab7338847181e75c492d681 100644 (file)
@@ -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: [],
         },
       },