559 — Trashing the row's project removes it from the timesheet¶
Description¶
Verifies that if the project referenced by a timesheet row is moved to trash (which also cascades-trashes its tasks), the orphaned row disappears from the timesheet rather than rendering broken.
Preconditions¶
- Signed-in user on a fresh organization.
- One seeded client, one seeded project, at least two tasks, and one label.
- Timesheet is open on the current week.
Steps¶
- Add one row with Client + Project + Task + Label + Billable. Expected: total rows = 1 and the row shows all four fields populated.
- Click the row's Project link to navigate to the project, then go to "All projects" and choose "Delete" on that project. Expected: the trash confirmation dialog opens.
- Confirm the move-to-trash. Expected: the "Moved to trash" toast appears.
- Switch back to Timesheet. Expected: the timesheet for the current week shows 0 rows — the row backed by the trashed project has disappeared.
Related¶
- Spec:
playwright/tests/integration/timesheet.spec.ts(line 182)