Skip to content

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

  1. Confirm the grid starts with 6 time records. Expected: all six rows are visible.
  2. 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).
  3. Step the period forward three times using the right-arrow button. Expected: the grid narrows to 1 time record (only today+3 overlaps).
  4. Click the "Current period" (today) button on the date picker.
  5. Expected: the grid restores to 2 time records — today's two overlapping records reappear.
  • Spec: playwright/tests/integration/filters.spec.ts (line 278)