574 — should permanently restore both items¶
Description¶
Verifies that the "Restore all" action puts every trashed entity back to its original location at once — the client reappears on the Clients page and the task reappears under its project.
Preconditions¶
- Signed-in admin owner of a fresh organization.
- A client and a task have already been moved to trash via API (project still exists).
- User lands on the Trash page.
Steps¶
- View the Trash list. Expected: Exactly 2 trashed items are shown.
- Trigger the "Restore all" flow. Expected: Both items are restored.
- Re-check the Trash count. Expected: Trash is empty (0 items).
- Navigate to the Clients page. Expected: Exactly 1 client is listed and its name matches the original client title.
- Switch to Projects, open the seeded project, and go to the Tasks tab. Expected: Tasks page loads, shows exactly 1 task, and the task's name matches the original task title.
Related¶
- Spec:
playwright/tests/integration/trash.spec.ts(line 150)