Skip to content

334 — should create two labels and archive one

Description

Verifies that an existing label can be archived from its detail view, that archived labels are hidden from the default list, and that the "Show archived" quick filter brings them back into view.

Preconditions

  • User is signed in to a freshly seeded tenant.
  • The Labels page is open and the list is empty.

Steps

  1. Create the first label by clicking "Add label", entering its title, and clicking "Create". Expected: a "Created" toast appears.
  2. Create a second label the same way with its own title. Expected: a second "Created" toast appears, and the list now shows two labels.
  3. Click the first label to open its detail modal, then click "Archive". Expected: an "Archive item" confirmation dialog appears.
  4. Confirm in the dialog. Expected: an "Archived" toast appears, the list refreshes to show only one label, and the remaining card is the second (non-archived) label.
  5. Open the filters panel, enable the "Show archived" quick filter, and click "Apply". Expected: the list now shows both labels — the archived first label and the active second label.
  • Spec: playwright/tests/integration/labels.spec.ts (line 147)