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