From 534511b49b6f01791de8f0f8788e5bd887bea6b1 Mon Sep 17 00:00:00 2001 From: Sabrina Date: Thu, 14 Dec 2023 16:23:13 +0000 Subject: [PATCH] Update karma.conf to run ChromeHeadlessNoSandbox --- karma.conf.js | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index f1c12fe058..b57bc451ec 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -63,11 +63,15 @@ module.exports = function (config) { logLevel: config.LOG_INFO, autoWatch: !isCI, singleRun: isCI, - // browsers: ['ChromeHeadlessNoSandbox', 'ChromeNoSandbox'], - browsers: ['ChromeNoSandbox'], + //browsers: ['ChromeHeadlessNoSandbox', 'ChromeNoSandbox'], + browsers: ['ChromeHeadlessNoSandbox'], customLaunchers: { - // ChromeHeadlessNoSandbox: { - // base: 'ChromeHeadless', + ChromeHeadlessNoSandbox: { + base: 'ChromeHeadless', + flags: ['--no-sandbox'], + }, + // ChromeNoSandbox: { + // base: 'Chrome', // flags: [ // '--no-sandbox', // '--user-data-dir=/tmp/chrome-test-profile', @@ -77,17 +81,6 @@ module.exports = function (config) { // ], // debug: true, // }, - ChromeNoSandbox: { - base: 'Chrome', - flags: [ - '--no-sandbox', - '--user-data-dir=/tmp/chrome-test-profile', - '--disable-web-security', - '--remote-debugging-address=0.0.0.0', - '--remote-debugging-port=9222', - ], - debug: true, - }, }, browserDisconnectTimeout: 10000, browserDisconnectTolerance: 3,