From 6ad86c7662f40dd462ee249188c6a0227b67b2f3 Mon Sep 17 00:00:00 2001 From: Joshua de Guzman Date: Fri, 20 Nov 2026 22:53:54 +0800 Subject: [PATCH 1/2] fix(e2e): capture a11y screenshots at CSS scale to stay under WebKit's size limit --- e2e/a11y.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2e/a11y.spec.ts b/e2e/a11y.spec.ts index 1dfc260..287a4db 100644 --- a/e2e/a11y.spec.ts +++ b/e2e/a11y.spec.ts @@ -25,6 +25,9 @@ for (const route of keyRoutes) { await page.screenshot({ path: `test-results/screenshots/${route.name}-${theme}-${info.project.name}.png`, fullPage: true, + // CSS-pixel scale keeps tall pages under WebKit's 32,767 px screenshot limit + // on high-density phone profiles. + scale: "css", }); expect(errors).toEqual([]); }); From 8d82e863a9c7334f61dfdac488d0e575955b6ac4 Mon Sep 17 00:00:00 2001 From: Joshua de Guzman Date: Fri, 20 Nov 2026 23:01:43 +0800 Subject: [PATCH 2/2] fix(ci): run the scroll perf test in Chromium only on CI runners --- playwright.perf.config.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/playwright.perf.config.ts b/playwright.perf.config.ts index 0347f05..e0cf6e8 100644 --- a/playwright.perf.config.ts +++ b/playwright.perf.config.ts @@ -19,11 +19,17 @@ export default defineConfig({ name: "chromium-desktop", use: { ...devices["Desktop Chrome"], viewport: { width: 1440, height: 900 } }, }, - { - name: "webkit-desktop", - use: { ...devices["Desktop Safari"], viewport: { width: 1440, height: 900 } }, - }, - { name: "webkit-iphone", use: { ...devices["iPhone 15"] } }, + // Headless WebKit on Linux CI runners has no GPU and throttles animation + // frames, so its timings mean nothing there. WebKit runs locally (macOS). + ...(process.env.CI + ? [] + : [ + { + name: "webkit-desktop", + use: { ...devices["Desktop Safari"], viewport: { width: 1440, height: 900 } }, + }, + { name: "webkit-iphone", use: { ...devices["iPhone 15"] } }, + ]), ], webServer: { command: "pnpm start",