Skip to content

571 — should permanently delete client

Description

Verifies that permanently deleting a single trashed client removes it from trash and confirms the Clients page no longer lists it — confirming permanent delete is irreversible and only affects the selected entity.

Preconditions

  • Signed-in admin owner of a fresh organization.
  • A client and a task have already been moved to trash via API.
  • User lands on the Trash page.

Steps

  1. View the Trash list. Expected: Exactly 2 trashed items are shown.
  2. Trigger the "permanently delete" action for the client row and confirm. Expected: The client is removed from trash.
  3. Re-check the Trash count. Expected: Exactly 1 item remains (the task).
  4. Navigate to the Clients page. Expected: The Clients table shows 0 clients.
  • Spec: playwright/tests/integration/trash.spec.ts (line 115)