test(statistics): add API and day_view frontend tests for closed: true #225
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#225
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
P3 follow-up from PR #178 review pass 3 (r32 item f).
Finding
PR #178 added closed-day markers and fields to daily statistics and presenter views, but tests currently only cover open holidays or normal open days.
closed: true(exceptional closure days or scheduled closed days) is not directly exercised in end-to-end API tests and day deck frontend tests.Acceptance Criteria
GET /api/statistics/dailyand hourly endpoints correctly serializeis_closed: true/closed: truewhen a day is marked closed (either via weekday schedule or schedule exception).tests/frontend/test_statistics_deck_day.test.jsverifying thatday_view.jscorrectly renders closed day badges, muted/hatched styles, and zeroed/omitted metrics whenis_closed: true.Refs #178, #161.