Skip to content

543 — should pick this year and count all seeded records

Description

Verifies that picking the current year in the Year date filter narrows the Time Records table to the union of all seeded months (current month plus −1, −5, +3) that fall inside the current calendar year, matching the precomputed total count.

Preconditions

  • Signed in to a seeded test organization.
  • Time Records page open in the Table view.
  • One record per day seeded at month offsets −1, 0, −5, and +3 (only those within the current year contribute to the count).

Steps

  1. Compute the expected total = sum of seeded records that fall inside the current calendar year.
  2. Open the date filter, choose Year, pick the current year, and close.
  3. Expected: the 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 978)