Add flag to webdriverio options (#5035)

* Add flag to webdriverio options

* update indentation of code
This commit is contained in:
Monica Kozbial
2021-07-13 09:31:21 -07:00
committed by GitHub
parent c42c5e72b4
commit e2d0498db2

View File

@@ -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']
};
}