Skip to content

332 — should create two labels and delete one of them

Description

Verifies that two labels can be created side by side and that deleting one of them (via the Move-to-Trash confirmation) removes only the deleted label while leaving the other one intact.

Preconditions

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

Steps

  1. Click "Add label", fill in title, description, and color for the first label, and click "Create". Expected: a "Created" toast appears.
  2. Click "Add label" again, fill in title, description, and color for a second label, and click "Create". Expected: a second "Created" toast appears.
  3. Inspect the list. Expected: exactly two label cards are shown, each displaying its own title, description, and color.
  4. Click the first label to open its detail modal, then click "Delete". Expected: a "Move label to trash" confirmation dialog appears.
  5. Confirm the deletion in the modal. Expected: a "Moved to trash" toast appears.
  6. Inspect the list again. Expected: only one label remains, and it is the second label with its original title, description, and color.
  • Spec: playwright/tests/integration/labels.spec.ts (line 92)