Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

fix(qa): use a portable Cockpit browser backend outside macOS

Tom-Neverwinter77575b9dc64f
diff --git a/scripts/qa-cockpit-utility.mjs b/scripts/qa-cockpit-utility.mjs
index e174b66d8..90ef86f59 100644
--- a/scripts/qa-cockpit-utility.mjs
+++ b/scripts/qa-cockpit-utility.mjs
@@ -20,7 +20,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 = [];