560 — Should copy row to next week after deleting its task¶
Description¶
Verifies that a timesheet row whose task has been moved to trash still survives in the current week and can be copied forward into next week — the row keeps its place even though the linked task is gone.
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 Task link in that row to open the task edit modal. Expected: the task edit modal shows the chosen task's title.
- Open the kebab menu on the task and choose "Move to trash", then confirm. Expected: the trash confirmation dialog opens, then the "Moved to trash" toast appears.
- Switch back to Timesheet. Expected: the timesheet still shows 1 row (the row survives because only the linked task was trashed).
- 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 196)