Skip to content

449 — should delete client in reports

Description

Verifies that a client can be moved to trash directly from the Reports → Clients tab and that the table row count updates to reflect the deletion.

Preconditions

  • Signed-in tenant owner Octavia Wolff on a 1920×1080 viewport.
  • Seeded test data: 4 clients, 4 projects, 6 tasks and 11 time records.
  • Reports page is open with the Clients tab active.

Steps

  1. Open the date picker and switch the range to the whole current year, then close the picker with Escape. Expected: the summary header matches the API aggregate of time records grouped by client for the year, and the table shows all 4 clients.
  2. Open the row-actions menu on the first client row and choose "Move to trash". Expected: a confirmation modal asks whether to move this client to trash.
  3. Confirm the move-to-trash modal. Expected: the modal closes and the Clients table refreshes; the row count drops to 3.
  • Spec: playwright/tests/integration/reports.spec.ts (line 582)
  • Spec: playwright/tests/integration/reports.spec.ts (line 582)