🔧 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
This commit is contained in:
Eva Marco 2026-10-29 14:50:20 +01:00 committed by GitHub
parent 2607ec89fa
commit c373e8da88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 },