561 — Should copy row to next week after deleting its client¶
Description¶
Verifies that a timesheet row whose client has been moved to trash still survives and can be copied forward into next week — trashing the client does not cascade to its project/task, so the row keeps its place.
Preconditions¶
- Signed-in user on a fresh organization.
- One seeded client, one seeded project, at least two seeded tasks, one label.
- Timesheet is open on the current week.
Steps¶
- Add a row with Client + Project + Task + Label + Billable and save. Expected: total rows = 1 with all four fields populated.
- Click the Client link in that row to open the client detail. Expected: the client detail header shows the seeded client name.
- Go to "All clients", choose "Delete" on that client, and confirm the trash dialog. Expected: the trash confirmation appears, then the "Moved to trash" toast.
- Switch back to Timesheet. Expected: the timesheet still shows 1 row (the client was trashed but the row survives).
- Click the right arrow to next week, then click "Copy from previous week". Expected: the headers move to next week and 1 row is copied forward.
Related¶
- Spec:
playwright/tests/integration/timesheet.spec.ts(line 221)