Skip to content

565 — Should create multiple rows and delete one

Description

Verifies that the user can build a timesheet of four differently configured rows for the same client/project, then delete one row through the row-delete confirmation, leaving the other three untouched.

Preconditions

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

Steps

  1. Add row 1 with Client + Project + Task + Label + Billable. Expected: total rows = 1.
  2. Add row 2 with Client + Project + Task + Billable. Expected: total rows = 2.
  3. Add row 3 with Client + Project + Label + Billable. Expected: total rows = 3.
  4. Add row 4 with Client + Label + Billable (no project, no task). Expected: total rows = 4.
  5. On row 4 (Client + Label) click the delete icon. Expected: the delete-row confirmation appears.
  6. Confirm the deletion. Expected: "Deleted" toast and total rows = 3 (the other three rows remain intact).
  • Spec: playwright/tests/integration/timesheet.spec.ts (line 298)