Context
The dashboard has both light/dark themes and many repeated operational states. As the UI refactor moves styling into shared primitives, tests should prevent regressions in token output, contrast-sensitive selectors, dark-mode rendering, and semantic data display.
Depends on #497 and #498. Should be expanded as #499, #500, and #501 land.
Scope
- Add token/theme tests that verify key light and dark color values differ where intended and remain present in generated CSS.
- Add focused component tests for shared primitive variants: primary/secondary/destructive buttons, status badges, progress bars, cards/panels, tabs/chips, inputs/selects.
- Add page-level regression tests for high-risk semantics: usage history/window values, account status badges/toggles, error unread state, and proxy health states.
- Add a lightweight contrast check for known foreground/background pairs where practical.
Acceptance criteria
Verification
Notes
Mock coverage is enough for this visual regression issue because it does not change external SDK/API behavior. Real-service E2E remains required for future changes that touch external services.
Context
The dashboard has both light/dark themes and many repeated operational states. As the UI refactor moves styling into shared primitives, tests should prevent regressions in token output, contrast-sensitive selectors, dark-mode rendering, and semantic data display.
Depends on #497 and #498. Should be expanded as #499, #500, and #501 land.
Scope
Acceptance criteria
anyis introduced.Verification
npm test.npm run build.Notes
Mock coverage is enough for this visual regression issue because it does not change external SDK/API behavior. Real-service E2E remains required for future changes that touch external services.