Skip to content

Commit e37cf34

Browse files
committed
Add flags to Chrome startup in WDIO config
Similarly to Karma, Chrome won't launch on CI unless the `--no-sandbox` and `--disable-setuid-sandbox` are set.
1 parent 7d6b63c commit e37cf34

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/wdio.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ const capabilitiesLocal = [
2424
{
2525
browserName: 'chrome',
2626
'goog:chromeOptions': {
27-
args: ['--headless=new'],
27+
// Chrome won't run on CI unless the `--no-sandbox` and `--disable-setuid-sandbox` flags are applied
28+
// otherwise, it runs into the same kind of issue as Karma and Puppeteer:
29+
// https://github.com/Googlechrome/puppeteer/issues/290
30+
args: ['--headless=new', '--no-sandbox', '--disable-setuid-sandbox'],
2831
binary: puppeteer.executablePath()
2932
}
3033
}

0 commit comments

Comments
 (0)