From 1955ffc01e64bc53618b39ff6e2c5d1709988fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Tue, 17 Nov 2020 20:42:55 +0100 Subject: [PATCH] Handle Chromium to run Karma (#32178) * chore(karma): handle Chromium to run tests * Update karma.conf.js Co-authored-by: XhmikosR --- js/tests/karma.conf.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js index 55aca1bb19..74109460e8 100644 --- a/js/tests/karma.conf.js +++ b/js/tests/karma.conf.js @@ -33,11 +33,15 @@ const detectBrowsers = { return debug ? ['Chrome'] : ['ChromeHeadless'] } + if (env.CI === true || availableBrowser.includes('Chromium')) { + return debug ? ['Chromium'] : ['ChromiumHeadless'] + } + if (availableBrowser.includes('Firefox')) { return debug ? ['Firefox'] : ['FirefoxHeadless'] } - throw new Error('Please install Firefox or Chrome') + throw new Error('Please install Chrome, Chromium or Firefox') } }