tests: Use Chrome for 'npm test' in GitHub CI

Follows-up 55186c8. I had this check originally, but then
removed it after GitHub merged the upstream improvement.
It looks like some CI runners might not yet have it applied,
so keep it a little longer for now.
This commit is contained in:
Timo Tijhof 2021-01-27 06:25:45 +00:00
parent 33308af132
commit 1e6f357ed2

View File

@ -10,7 +10,12 @@ module.exports = function (config) {
// whereas Windows and macOS users tend to have auto-updating Google Chrome.
//
// See package.json for commands to run tests in a single browser only.
process.platform === 'linux' ? 'ChromiumHeadless' : 'ChromeHeadless'
//
// The CHROME_BIN check is to temporarily accomodate GitHub Actions
// which oddly uses Ubuntu but replaces the standard Chromium distribution
// with a custom install of Google Chrome. Being fixed in the next release:
// https://github.com/actions/virtual-environments/issues/2388
process.platform === 'linux' && !process.env.CHROME_BIN ? 'ChromiumHeadless' : 'ChromeHeadless'
],
frameworks: ['qunit'],
client: {