mirror of
https://github.com/penpot/penpot.git
synced 2026-10-30 22:40:33 +00:00
🔧 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:
parent
2607ec89fa
commit
c373e8da88
@ -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 },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user