diff --git a/core/.env.example b/core/.env.example index 13c5a7867df536bc1d787f2b8c4c3d71a7f3e3cc..04db337033cbd215f9ac58131007541173bfc81f 100644 --- a/core/.env.example +++ b/core/.env.example @@ -46,6 +46,10 @@ DRUPAL_TEST_CHROMEDRIVER_AUTOSTART=true # e.g. `--disable-gpu --headless --no-sandbox`. #DRUPAL_TEST_WEBDRIVER_CHROME_ARGS= +# A list of arguments to pass to Webdriver, separated by spaces +# e.g. `--allowed-ips --disable-dev-shm-usage`. +#DRUPAL_TEST_WEBDRIVER_CLI_ARGS= + ############## # Nightwatch # ############## diff --git a/core/tests/Drupal/Nightwatch/nightwatch.conf.js b/core/tests/Drupal/Nightwatch/nightwatch.conf.js index 5957cac03d41e3871b8a951c29d0e8dbfc00368e..f4440e7053f9131b3b4d0adac6788d74faecdaec 100644 --- a/core/tests/Drupal/Nightwatch/nightwatch.conf.js +++ b/core/tests/Drupal/Nightwatch/nightwatch.conf.js @@ -82,6 +82,9 @@ module.exports = { webdriver: { start_process: process.env.DRUPAL_TEST_CHROMEDRIVER_AUTOSTART, port: process.env.DRUPAL_TEST_WEBDRIVER_PORT, + cli_args: process.env.DRUPAL_TEST_WEBDRIVER_CLI_ARGS + ? process.env.DRUPAL_TEST_WEBDRIVER_CLI_ARGS.split(' ') + : [], }, desiredCapabilities: { browserName: 'chrome',