fix(test): use date relative to now in ContextMenu event fixture (BIT-33405) #309

Merged
tiago-neves merged 1 commits from task/BIT-33405-context-menu-date-flake into main 2026-11-26 15:09:42 +00:00
Owner

Problem

ContextMenu.test.tsx used a hardcoded startsAt of 2026-11-21T10:56:00.000Z. EventsPanel keeps events from the last RECENT_DAYS=4 in the main list and collapses older ones under "Anteriores". After 2026-11-25 the fixture fell outside the 4-day window, so the event row was hidden and the test failed on every CI run (blocking all open PRs including #308).

Fix

Derive startsAt, ingestFrom, and ingestUntil from Date.now() (yesterday) so the fixture stays inside the recent window regardless of the run date.

Paperclip-Issue: BIT-33405
Paperclip-Agent: Bug Squasher (urlKey bug-squasher)

## Problem `ContextMenu.test.tsx` used a hardcoded `startsAt` of `2026-11-21T10:56:00.000Z`. `EventsPanel` keeps events from the last `RECENT_DAYS=4` in the main list and collapses older ones under "Anteriores". After 2026-11-25 the fixture fell outside the 4-day window, so the event row was hidden and the test failed on every CI run (blocking all open PRs including #308). ## Fix Derive `startsAt`, `ingestFrom`, and `ingestUntil` from `Date.now()` (yesterday) so the fixture stays inside the recent window regardless of the run date. Paperclip-Issue: BIT-33405 Paperclip-Agent: Bug Squasher (urlKey bug-squasher)
spark added 1 commit 2026-11-26 14:58:52 +00:00
fix(test): use date relative to now in ContextMenu event fixture (BIT-33405)
ci / rust (pull_request) Successful in 4m34s
ci / typescript (pull_request) Successful in 10m19s
2a750ef916
The hardcoded startsAt 2026-11-21 fell outside EventsPanel RECENT_DAYS=4
window after 2026-11-25, collapsing the event under "Anteriores" and making
the test fail on every CI run. Derive startsAt, ingestFrom and ingestUntil
from Date.now() so the fixture stays inside the recent window regardless
of the run date.

Paperclip-Issue: BIT-33405
Paperclip-Agent: Bug Squasher (urlKey bug-squasher; id 4669adc7-6368-43ef-bf27-5a601a6b7b83)
tiago-neves merged commit 6077a1062a into main 2026-11-26 15:09:42 +00:00
Sign in to join this conversation.