feat: support chrome-headless-shell (#10739)

This commit is contained in:
Mathias Bynens
2023-08-16 13:34:54 +02:00
committed by GitHub
parent e12b558f50
commit 416843ba68
10 changed files with 413 additions and 9 deletions

View File

@@ -32,7 +32,11 @@ function getBrowser(str) {
const match = str.match(regex);
if (match && match[1]) {
return match[1].toLowerCase();
const lowercased = match[1].toLowerCase();
if (lowercased === 'chromeheadlessshell') {
return 'chrome-headless-shell';
}
return lowercased;
} else {
return null;
}
@@ -42,7 +46,6 @@ const cacheDir = normalize(join('.', 'test', 'cache'));
for (const version of Object.keys(versions)) {
const browser = getBrowser(version);
if (!browser) {
continue;
}