From c6782a288c48339d8130e174978c3bee3f14a0b6 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Thu, 15 Apr 2021 19:27:23 +0000 Subject: [PATCH] test(e2e): explicitly use ChromeHeadless with no-sandbox --- clients/client-cognito-identity/karma.conf.js | 6 +++++- clients/client-s3/karma.conf.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/clients/client-cognito-identity/karma.conf.js b/clients/client-cognito-identity/karma.conf.js index 1b0e550b2cdc..4592c6e7a9a2 100644 --- a/clients/client-cognito-identity/karma.conf.js +++ b/clients/client-cognito-identity/karma.conf.js @@ -52,8 +52,12 @@ module.exports = function (config) { colors: true, logLevel: config.LOG_WARN, autoWatch: false, - browsers: ["ChromeHeadless", "FirefoxHeadless"], + browsers: ["ChromeHeadlessNoSandbox", "FirefoxHeadless"], customLaunchers: { + ChromeHeadlessNoSandbox: { + base: "ChromeHeadless", + flags: ["--no-sandbox"], + }, FirefoxHeadless: { base: "Firefox", flags: ["-headless"], diff --git a/clients/client-s3/karma.conf.js b/clients/client-s3/karma.conf.js index 4acc74e837be..e23ce94b53e1 100644 --- a/clients/client-s3/karma.conf.js +++ b/clients/client-s3/karma.conf.js @@ -52,8 +52,12 @@ module.exports = function (config) { colors: true, logLevel: config.LOG_WARN, autoWatch: false, - browsers: ["ChromeHeadless", "FirefoxHeadless"], + browsers: ["ChromeHeadlessNoSandbox", "FirefoxHeadless"], customLaunchers: { + ChromeHeadlessNoSandbox: { + base: "ChromeHeadless", + flags: ["--no-sandbox"], + }, FirefoxHeadless: { base: "Firefox", flags: ["-headless"],