diff -u b/core/tests/Drupal/Nightwatch/nightwatch.conf.js b/core/tests/Drupal/Nightwatch/nightwatch.conf.js --- b/core/tests/Drupal/Nightwatch/nightwatch.conf.js +++ b/core/tests/Drupal/Nightwatch/nightwatch.conf.js @@ -63,6 +63,31 @@ browserName: 'chrome', acceptSslCerts: true, chromeOptions: { + w3c: false, + args: process.env.DRUPAL_TEST_WEBDRIVER_CHROME_ARGS + ? process.env.DRUPAL_TEST_WEBDRIVER_CHROME_ARGS.split(' ') + : [], + }, + }, + screenshots: { + enabled: true, + on_failure: true, + on_error: true, + path: `${process.env.DRUPAL_NIGHTWATCH_OUTPUT}/screenshots`, + }, + end_session_on_fail: false, + }, + local: { + webdriver: { + start_process: process.env.DRUPAL_TEST_CHROMEDRIVER_AUTOSTART, + port: process.env.DRUPAL_TEST_WEBDRIVER_PORT, + server_path: 'node_modules/.bin/chromedriver', + }, + desiredCapabilities: { + browserName: 'chrome', + acceptSslCerts: true, + chromeOptions: { + w3c: false, args: process.env.DRUPAL_TEST_WEBDRIVER_CHROME_ARGS ? process.env.DRUPAL_TEST_WEBDRIVER_CHROME_ARGS.split(' ') : [], diff -u b/core/tests/README.md b/core/tests/README.md --- b/core/tests/README.md +++ b/core/tests/README.md @@ -85,7 +85,8 @@ * Configure the nightwatch settings by copying `.env.example` to `.env` and editing as necessary. * Ensure you have a web server running (as instructed in `.env`) -* Again inside the `core` folder, run `yarn test:nightwatch` to run the tests. +* Again inside the `core` folder, run `yarn test:nightwatch --env local` to run + the tests. By default this will output reports to `core/reports` * Nightwatch will run tests for core, as well as contrib and custom modules and themes. It will search for tests located under folders with the pattern