From c373e8da8839caa21c8b9cf9161047c9e0c3ab80 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Thu, 29 Oct 2026 14:50:20 +0100 Subject: [PATCH] :wrench: Run the DS visual specs on the dark theme (#12707) Since accounts without a theme follow the system one (#12480), the ds Playwright project renders the light theme: headless Chromium reports a light color scheme. Its screenshots stopped matching the ones taken before, and the app is reviewed on the dark theme. Set colorScheme to dark for the ds project only; the default and render-wasm projects keep their behavior. AI-assisted-by: claude-opus-5-5 --- frontend/playwright.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/playwright.config.js b/frontend/playwright.config.js index 1e74d525eb..087e6ba56f 100644 --- a/frontend/playwright.config.js +++ b/frontend/playwright.config.js @@ -65,7 +65,9 @@ export default defineConfig({ }, { name: "ds", - use: { ...devices["Desktop Chrome"] }, + // Accounts without a theme follow the system one; keep the visual + // specs on the dark theme so their screenshots stay comparable. + use: { ...devices["Desktop Chrome"], colorScheme: "dark" }, testDir: "./playwright/ui/visual-specs", expect: { toHaveScreenshot: { maxDiffPixelRatio: 0.005 },