Skip to content

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

  1. View the Trash list. Expected: Exactly 2 trashed items are shown.
  2. Trigger the "Restore all" flow. Expected: Both items are restored.
  3. Re-check the Trash count. Expected: Trash is empty (0 items).
  4. Navigate to the Clients page. Expected: Exactly 1 client is listed and its name matches the original client title.
  5. 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.
  • Spec: playwright/tests/integration/trash.spec.ts (line 150)