Skip to content

434 — should delete time records in reports

Description

Verifies that a time record can be moved to trash directly from the Reports → Time records tab, and that the table totals and row count update to reflect the deletion.

Preconditions

  • Signed-in tenant owner Octavia Wolff on a 1920×1080 viewport.
  • Seeded test data: 4 clients, 4 simple projects, 6 tasks and 11 time records (TR0–TR10) spanning the current week and adjacent weeks.
  • Reports page is open with the Time records tab active.

Steps

  1. Confirm the default current-week summary on the Time records tab. Expected: the summary header matches the aggregate of all API time records whose start falls inside the current week.
  2. Open the date picker and switch the range to the whole current year, then close the picker with Escape. Expected: the table now shows every seeded time record — exactly 11 rows.
  3. Open the row-actions menu on the first row and choose "Move to trash". Expected: a confirmation modal appears asking whether to move this time record to trash.
  4. Confirm the move-to-trash modal. Expected: the modal closes and the Time records table refreshes; the row count drops to 10.
  • Spec: playwright/tests/integration/reports.spec.ts (line 307)
  • Spec: playwright/tests/integration/reports.spec.ts (line 307)