577 — should first delete task, then project, and then restore project¶
Description¶
Verifies that deleting a task first and then its parent project subsumes the standalone task trash entry under the project, and that restoring the project brings the task back even though it was trashed separately earlier.
Preconditions¶
- Signed-in admin owner of a fresh organization with a seeded project containing one task.
- User is logged into the organization.
Steps¶
- Switch to Projects. Expected: Exactly 1 project listed with the seeded project name.
- Open the project, go to Tasks. Expected: Exactly 1 task is listed.
- Move the task to trash and confirm. Expected: "Moved to trash" toast appears.
- Return to the projects list, click "Delete" on the project, and confirm move-to-trash. Expected: "Moved to trash" toast appears.
- Open the Trash page. Expected: Exactly 1 item listed — the project (type "Project", owner name, today's date). The previously-trashed task row has been merged into the project entry.
- Trigger "Restore all". Expected: Trash empties.
- Switch to Projects. Expected: Exactly 1 project listed with the original project title.
- Open the project and go to Tasks. Expected: Exactly 1 task listed with the original task title — confirming both were restored together.
Related¶
- Spec:
playwright/tests/integration/trash.spec.ts(line 250)