mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
Adds a Playwright spec that drives the dashboard end-to-end — opens the chart overlay-controls popover, toggles target-range on, and verifies the PUT /api/dashboard/chart-overlay-prefs round-trip fires. Adds a vitest SSR test that pins the medication-compliance chart's prefs-gated rendering: with the trend toggle off the 7-day trend chip stays hidden; flipping it on paints the chip in the header. Mocks the useChartOverlayPrefs hook so each test can dial the persisted state directly without round-tripping the layout API. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>