Skip to content

579 — should create quick filter, delete it, and check recovered filter

Description

Verifies that a time-record Quick Filter with description and three sortings (Start desc, Note asc, End asc) can be moved to trash and restored, and that after restore the description, sort directions, sort count, and the original ordering of sortings are all preserved.

Preconditions

  • Signed-in admin owner of a fresh organization.
  • User is logged into the organization.

Steps

  1. Open Time Record Quick Filters and click "Add quick filter". Enter title and description. Expected: Form opens and accepts values.
  2. Add three sortings in order: Start = Desc, Note = Asc, End = Asc. Expected: Three sorting rows are configured.
  3. Click "Create". Expected: Quick filter list shows exactly 1 quick filter.
  4. Open the new quick filter, click "Delete", confirm the move-to-trash. Expected: "Moved to trash" toast appears.
  5. Open the Trash page. Expected: Exactly 1 item listed — type "Saved Filter", owner name, today's date.
  6. Trigger "Restore all". Expected: Trash empties.
  7. Return to Time Record Quick Filters and open the restored filter. Expected: Description matches the original; Start sorting is Desc, Note sorting is Asc, End sorting is Asc; total sortings = 3; and the sortings appear in the original order (Start, Note, End).
  • Spec: playwright/tests/integration/trash.spec.ts (line 360)