Skip to content

558 — Should copy multi-row sheet to next week with all configurations preserved

Description

Verifies that when the user copies a multi-row timesheet to the next week, every row's full configuration — client, project, task, label, and billable flag — is preserved exactly.

Preconditions

  • Signed-in user on a fresh organization.
  • One seeded client, one seeded project, at least two seeded tasks (the second task is used), and one seeded label.
  • Timesheet is open on the current week.

Steps

  1. Add row 1 with Client + Project + Task + Label + Billable. Expected: "Created" toast, total rows = 1, and the row shows all four fields populated.
  2. Add row 2 with Client + Project + Task + Billable (no label). Expected: "Created" toast, total rows = 2.
  3. Add row 3 with Client + Project + Label + Billable (no task). Expected: "Created" toast, total rows = 3.
  4. Add row 4 with Client + Label + Billable (no project, no task). Expected: "Created" toast, total rows = 4.
  5. Click the right arrow to jump to next week, then click "Copy from previous week". Expected: the headers now show next week's dates and all four rows reappear with the same Client / Project / Task / Label / Billable configuration as in step 1–4.
  • Spec: playwright/tests/integration/timesheet.spec.ts (line 152)