Skip to content

544 — should land on this year via 'This year' button after a far-past year

Description

Verifies that after navigating the Year date filter to an empty far-past year (−5), clicking the This year shortcut snaps the filter back to the current year and the table re-populates with the precomputed in-year total of seeded records.

Preconditions

  • Signed in to a seeded test organization.
  • Time Records page open in the Table view.
  • Records seeded at month offsets −1, 0, −5, +3 (some may fall outside the current calendar year depending on today's date).

Steps

  1. Compute the expected total = sum of seeded records that fall inside the current calendar year.
  2. Open the date filter, choose Year, navigate −5 years, pick that year, and close. Expected: filter chip shows the past year; the table is empty.
  3. Click the Current ("This year") shortcut in the filter and close. Expected: filter chip shows the current year.
  4. Scroll the table to load all virtualized rows. Expected: the row count equals the precomputed total.
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 991)