Skip to content

572 — should permanently delete both items

Description

Verifies that the "Empty trash" action permanently removes every trashed entity at once, and that the corresponding client and task no longer appear on their respective pages.

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 "Empty trash" flow and confirm. Expected: All trashed items are permanently deleted.
  3. Re-check the Trash count. Expected: Trash is empty (0 items).
  4. Navigate to the Clients page. Expected: 0 clients listed.
  5. Switch to Projects, open the seeded project, and go to the Tasks tab. Expected: Tasks page loads with 0 tasks.
  • Spec: playwright/tests/integration/trash.spec.ts (line 124)