Skip to content

539 — should land on this week from a far-future empty range

Description

Verifies that after navigating the Week date filter to an empty far-future week, clicking the This week ("current") shortcut snaps the filter back to the current week and re-populates the table with this week's seeded records.

Preconditions

  • Signed in to a seeded test organization.
  • Time Records page open in the Table view.
  • Records seeded for the current month plus offsets −1, −5, +3 (nothing at +6 months).

Steps

  1. Open the date filter, pick Week mode, navigate 6 months forward, click the 2nd week, and close the picker.
  2. Expected: filter chip shows the picked future week; the table is empty (0 records).
  3. Open the date filter again and click the Current ("This week") button. Expected: the filter chip shows this week's start–end dates.
  4. Expected: the table shows the seeded records that fall inside the current week.
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 910)