Skip to content

556 — Should create time sheet row and check headers across weeks

Description

Verifies that a freshly created timesheet row stays in place when the user moves through future weeks via the "Copy from previous week" action, and that the weekday header dates stay in sync with the selected week (jumping forward, then snapping back to "Today").

Preconditions

  • Signed-in user on a fresh organization.
  • One seeded client (used as the row's Client) and a default Advanced project.
  • Timesheet is open on the current week.

Steps

  1. Click "Add row", pick the seeded client, leave Billable on, and save the row. Expected: "Created" toast appears and the timesheet shows 1 row.
  2. Inspect the new row. Expected: the row's Client cell shows the seeded client and Billable is on.
  3. Expected: the seven weekday headers display the dates of the current week (Mon–Sun).
  4. Click the right arrow on the week picker to jump to next week, then click "Copy from previous week". Expected: the row from last week is now present in this week and the weekday headers display next week's dates (current week + 1).
  5. Click the right arrow again and "Copy from previous week" again. Expected: the row carries forward into week +2 and the headers show that week's dates.
  6. Click "Today" (the current-period button) on the week picker. Expected: the view jumps back to the current week and the headers again show today's week.
  • Spec: playwright/tests/integration/timesheet.spec.ts (line 117)