Skip to content

The agent that grows with you

fix(desktop): pin E2E sandboxes to Chromium zoom 0

Brooklyn Nicholson9ad400580cc4
diff --git a/apps/desktop/e2e/fixtures.ts b/apps/desktop/e2e/fixtures.ts
index 3427d42c9bf..75d51f6ea2e 100644
--- a/apps/desktop/e2e/fixtures.ts
+++ b/apps/desktop/e2e/fixtures.ts
@@ -120,6 +120,17 @@ export function createSandbox(prefix: string): Sandbox {
'utf8',
)
+ // Pin Chromium actual-size zoom (level 0) for the suite. Fresh installs
+ // ship DEFAULT_ZOOM_LEVEL ≈ -0.5 (~91%), but Playwright click hit-testing
+ // and the committed visual baselines were calibrated at 100%. Without this
+ // file every sandbox would inherit the product default and fail pointer
+ // interception + snapshot diffs.
+ fs.writeFileSync(
+ path.join(userDataDir, 'zoom-state.json'),
+ JSON.stringify({ zoomLevel: 0 }, null, 2),
+ 'utf8',
+ )
+
return {
root,
hermesHome,