]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: add headless chrome as default
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 9 Jun 2022 09:31:55 +0000 (11:31 +0200)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Thu, 30 Jun 2022 07:59:00 +0000 (09:59 +0200)
packages/router/nightwatch.conf.js

index de2d5fd55346e7369ba9dece128306d9e6212aa0..e6e62f9f8d9fee2e5367a12ec1676d7c86104416 100644 (file)
@@ -37,7 +37,7 @@ module.exports = {
   test_settings: {
     default: {
       disable_error_log: false,
-      launch_url: 'https://nightwatchjs.org',
+      // launch_url: 'https://nightwatchjs.org',
 
       screenshots: {
         enabled: false,
@@ -46,12 +46,19 @@ module.exports = {
       },
 
       desiredCapabilities: {
-        browserName: 'firefox',
+        browserName: 'chrome',
+        'goog:chromeOptions': {
+          w3c: true,
+          args: ['--headless'],
+        },
       },
 
       webdriver: {
         start_process: true,
         server_path: '',
+        cli_args: [
+          // --verbose
+        ],
       },
     },
 
@@ -111,12 +118,13 @@ module.exports = {
       webdriver: {
         start_process: true,
         server_path: '',
-        cli_args: [
-          // --verbose
-        ],
       },
     },
 
+    'chrome-headless': {
+      extends: 'default',
+    },
+
     edge: {
       desiredCapabilities: {
         browserName: 'MicrosoftEdge',