Skip to content

Respect calendar month boundaries in the analytics view test - #40

Merged
davidvanleeuwen merged 1 commit into
mainfrom
fix/analytics-calendar-test
Nov 2, 2026
Merged

davidvanleeuwen merged 1 commit into
mainfrom
fix/analytics-calendar-test

Conversation

@davidvanleeuwen

Copy link
Copy Markdown
Member

✨ What changes

The analytics dashboard test assumes that an event from two days ago belongs to the current calendar month. That assertion fails on the first two days of each month.

  • Bind the fixture timestamps explicitly and calculate the expected count from the events in the current month.
  • Assert against the Views card specifically, so another KPI cannot satisfy the count assertion.
  • Keep application behavior unchanged.

🔎 Additional checks

The fixture expectations were checked for the first three days of a month, a year boundary and a leap-year month boundary.

@davidvanleeuwen
davidvanleeuwen merged commit 8046e64 into main Nov 2, 2026
3 checks passed
@davidvanleeuwen
davidvanleeuwen deleted the fix/analytics-calendar-test branch November 2, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant