Commit aa541f4
Task Orchestrator Agent
fix(visual): pin theme via localStorage["mode"] (MUI's real modeStorageKey)
pinTheme wrote localStorage["mui-color-scheme"], but MUI's
InitColorSchemeScript/CssVarsProvider default modeStorageKey is the literal
string "mode" — so the light theme never applied and the 3 light-mode
baselines captured dark (byte-identical to their dark counterparts).
Fix: write localStorage["mode"]. Dark tests are unaffected (defaultMode is
already dark). Delete the 3 incorrectly-captured light baselines so CI
regenerates them as genuine light-mode captures on the next run.
Also confirmed the dashboard is deterministic: the two dark /dashboard
captures differ only by sub-threshold anti-aliasing noise (0.00% at per-pixel
threshold 8), well within Playwright's threshold:0.2.1 parent 829f174 commit aa541f4
5 files changed
Lines changed: 10 additions & 6 deletions
File tree
- web/tests/visual
- theme.spec.ts-snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
0 commit comments