239 — should restore today's time records via the current period button¶
Description¶
Verifies that the "Current period" (today) button on the date-range picker resets the visible period to today, restoring the time records that overlap today's date.
Preconditions¶
- Signed-in test tenant
- Six time records seeded across a range of days, two of them overlapping today
- Time Tracking Table view open showing all 6 records
Steps¶
- Confirm the grid starts with 6 time records. Expected: all six rows are visible.
- Open the date picker and switch it to "Day" view, then close the overlay with Escape. Expected: the grid narrows to 2 time records (the two that overlap today).
- Step the period forward three times using the right-arrow button. Expected: the grid narrows to 1 time record (only today+3 overlaps).
- Click the "Current period" (today) button on the date picker.
- Expected: the grid restores to 2 time records — today's two overlapping records reappear.
Related¶
- Spec:
playwright/tests/integration/filters.spec.ts(line 278)