Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion test/karma.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ module.exports = function (config) {
frameworks: ['mocha', 'webpack'],
reporters: ['mocha'],

browsers: ['ChromeHeadless'],
// Chrome won't run on CI unless the `--no-sandbox` and `--disable-setuid-sandbox` flags are applied
// Karma's Chrome Headless seems based on Puppeteer and runs into this issue:
// https://github.com/Googlechrome/puppeteer/issues/290
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox', '--disable-setuid-sandbox']
}
},

files: [
'test/functional/**/*.js'
Expand Down
5 changes: 4 additions & 1 deletion test/wdio.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ const capabilitiesLocal = [
{
browserName: 'chrome',
'goog:chromeOptions': {
args: ['--headless=new'],
// Chrome won't run on CI unless the `--no-sandbox` and `--disable-setuid-sandbox` flags are applied
// otherwise, it runs into the same kind of issue as Karma and Puppeteer:
// https://github.com/Googlechrome/puppeteer/issues/290
args: ['--headless=new', '--no-sandbox', '--disable-setuid-sandbox'],
binary: puppeteer.executablePath()
}
}
Expand Down