Skip to content

Commit

Permalink
Backport #32178 and #32182
Browse files Browse the repository at this point in the history
Handle Chromium to run Karma
  • Loading branch information
XhmikosR committed Nov 19, 2020
1 parent e567b9a commit 4e4f739
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ const detectBrowsers = {
return ['ChromeHeadless']
}

if (availableBrowser.includes('Chromium')) {
return ['ChromiumHeadless']
}

if (availableBrowser.includes('Firefox')) {
return ['FirefoxHeadless']
}

throw new Error('Please install Firefox or Chrome')
throw new Error('Please install Chrome, Chromium or Firefox')
}
}

Expand Down

0 comments on commit 4e4f739

Please sign in to comment.