diff --git a/frontend/test/karma.conf.js b/frontend/test/karma.conf.js index 07d47226eae68cebbcd2e56a9ae3a0103bd1cb36..37ab35a534d06f072dc602f5a6bb6d10b37a1304 100644 --- a/frontend/test/karma.conf.js +++ b/frontend/test/karma.conf.js @@ -41,7 +41,15 @@ module.exports = function(config) { port: 9876, colors: true, logLevel: config.LOG_INFO, - browsers: ["Chrome"], + // The --no-sandbox below is to fix issues running in docker, running Chrome as root + // https://github.com/karma-runner/karma-chrome-launcher/issues/158 + browsers: ["ChromeHeadlessNoSandbox"], + customLaunchers: { + ChromeHeadlessNoSandbox: { + base: "ChromeHeadless", + flags: ["--no-sandbox"], + }, + }, autoWatch: true, singleRun: false, });