From: Eduardo San Martin Morote Date: Thu, 9 Jun 2022 09:31:55 +0000 (+0200) Subject: test: add headless chrome as default X-Git-Tag: v4.1.0~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23a3f51cf9346e339184bf958b6700a5c95fe3d8;p=thirdparty%2Fvuejs%2Frouter.git test: add headless chrome as default --- diff --git a/packages/router/nightwatch.conf.js b/packages/router/nightwatch.conf.js index de2d5fd5..e6e62f9f 100644 --- a/packages/router/nightwatch.conf.js +++ b/packages/router/nightwatch.conf.js @@ -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',