diff --git a/app/.karma/karma.conf.js b/app/.karma/karma.conf.js index d7067d81..a8fdc4be 100644 --- a/app/.karma/karma.conf.js +++ b/app/.karma/karma.conf.js @@ -28,7 +28,13 @@ module.exports = async (config) => { }, plugins: [...config.plugins, await capMiddleware], middleware: ["cap-proxy"], - browsers: config.ci ? ["ChromeHeadless"] : ["Chrome"], + browsers: config.ci ? ["ChromeHeadlessNoSandbox"] : ["Chrome"], + customLaunchers: { + ChromeHeadlessNoSandbox: { + base: 'ChromeHeadless', + flags: ['--no-sandbox'] + } + }, singleRun: config.ci || config.singleRun || false }); };