From e2d0498db27c0b6a3a9d62bc6041928b98f1a47c Mon Sep 17 00:00:00 2001 From: Monica Kozbial <6621618+moniika@users.noreply.github.com> Date: Tue, 13 Jul 2021 09:31:21 -0700 Subject: [PATCH] Add flag to webdriverio options (#5035) * Add flag to webdriverio options * update indentation of code --- tests/mocha/run_mocha_tests_in_browser.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/mocha/run_mocha_tests_in_browser.js b/tests/mocha/run_mocha_tests_in_browser.js index 15fc41e4a..b562586bd 100644 --- a/tests/mocha/run_mocha_tests_in_browser.js +++ b/tests/mocha/run_mocha_tests_in_browser.js @@ -29,7 +29,14 @@ async function runMochaTestsInBrowser() { // Run in headless mode on Github Actions. if (process.env.CI) { options.capabilities['goog:chromeOptions'] = { - args: ['--headless', '--no-sandbox', '--disable-dev-shm-usage'] + args: [ + '--headless', '--no-sandbox', '--disable-dev-shm-usage', + '--allow-file-access-from-files', + ] + }; + } else { + options.capabilities['goog:chromeOptions'] = { + args: ['--allow-file-access-from-files'] }; }