fix(qa): choose portable browser renderers outside macOS

This commit is contained in:
Tom-Neverwinter authored and Sameh Khamis committed 2026-09-11 14:43:13 -07:00
1 parent 162ac4f2c9
commit 01dcecf6e9
4 files changed
+16 -4

No files matched your search

+7 -1
View File
@@ -39,7 +39,13 @@ const executablePath = chromeCandidates.find((candidate) => fs.existsSync(candid
const browser = await puppeteer.launch({
headless: headful ? false : 'new',
...(executablePath ? { executablePath } : {}),
args: ['--use-angle=metal', '--enable-gpu', '--no-sandbox'],
// Metal is a macOS-only ANGLE backend; anywhere else it fails WebGL init.
args: [
...(process.platform === 'darwin'
? ['--use-angle=metal', '--enable-gpu']
: ['--use-gl=angle', '--use-angle=swiftshader']),
'--no-sandbox',
],
});
const page = await browser.newPage();
const failures = [];