From: Gaƫl Poupard Date: Tue, 17 Nov 2020 19:42:55 +0000 (+0100) Subject: Handle Chromium to run Karma (#32178) X-Git-Tag: v5.0.0-beta1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1955ffc01e64bc53618b39ff6e2c5d1709988fe1;p=thirdparty%2Fbootstrap.git Handle Chromium to run Karma (#32178) * chore(karma): handle Chromium to run tests * Update karma.conf.js Co-authored-by: XhmikosR --- 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') } }