Skip to content

557 — Should create time sheet row and check headers in past weeks

Description

Verifies that the user can navigate backwards into prior weeks, add a brand new row to each past week independently, and that the weekday header dates always reflect the week being edited.

Preconditions

  • Signed-in user on a fresh organization.
  • One seeded client and a default Advanced project.
  • Timesheet is open on the current week.

Steps

  1. Add a new row in the current week using the seeded client (Billable on) and save. Expected: "Created" toast appears and the timesheet shows 1 row with the seeded client and Billable on. The headers display this week's dates.
  2. Click the left arrow on the week picker to go to the previous week, then add a new row with the same client. Expected: the previous week shows 1 row with the seeded client / Billable on, and the headers show last week's dates (current week − 1).
  3. Click the left arrow again to go two weeks back and add another row with the same client. Expected: that week shows 1 row with the seeded client / Billable on, and the headers show the dates of two weeks ago (current week − 2).
  • Spec: playwright/tests/integration/timesheet.spec.ts (line 133)