Skip to content

016 — should create two templates and delete them

Description

Verifies that multiple additional-item templates can be created and then bulk-deleted from the templates view, leaving the templates list empty.

Preconditions

  • Signed in as the owner of a freshly provisioned organization
  • The Additional Items page is open on the "Additional item templates" tab

Steps

  1. Create the first template with the default name and an empty additional item, then click "Save". Expected: A "Created" popup appears and a template card with that name is visible.
  2. Create a second template named "title2" the same way and click "Save". Expected: A "Created" popup appears, a second template card titled "title2" is visible, and the templates list now contains 2 entries.
  3. Tick the checkbox on the "title2" card, then click "All" to select every template. Expected: The selection bar shows "2" selected.
  4. Click "Move to trash" in the bulk-action bar. Expected: The delete-template confirmation modal appears.
  5. Confirm the deletion. Expected: A "Moved to trash" popup appears and the templates list contains 0 templates.
  • Spec: playwright/tests/integration/additionalItem.spec.ts (line 526)