Skip to content

573 — should restore client

Description

Verifies that restoring a single trashed client returns it to the Clients page (with its original title) while leaving other trashed entities untouched.

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 "Restore" action for the client row. Expected: The client row disappears from trash.
  3. Re-check the Trash count. Expected: Exactly 1 item remains (the task).
  4. Navigate to the Clients page. Expected: Clients page loads, lists exactly 1 client, and the client's name matches the originally-deleted client title.
  • Spec: playwright/tests/integration/trash.spec.ts (line 139)