Skip to content

570 — should check trash datagrid and then delete project

Description

Verifies that the Trash page lists each soft-deleted entity with the correct type, owner, and deletion date, and that deleting a project from the projects page replaces the standalone trashed task with a single project entry (since the project subsumes its child task in trash).

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. Verify the client entry. Expected: Row shows the client title, type "Client", owner name, and today's date.
  3. Verify the task entry. Expected: Row shows the task title, type "Task", owner name, and today's date.
  4. Switch to Projects, click "Delete" on the seeded project, and confirm the delete dialog. Expected: The delete-project confirmation modal appears.
  5. Click "Move to trash" and dismiss the confirmation popup. Expected: The "moved to trash" toast appears.
  6. Re-open Trash. Expected: Still exactly 2 items — the client row remains, and the project row has replaced the task row (project + client, both with type, owner, and today's date).
  • Spec: playwright/tests/integration/trash.spec.ts (line 97)