Skip to content

006 — should create two additional items and delete one

Description

Verifies that an existing additional item can be moved to trash one at a time: starting from two items in the grid, deleting the newly created one leaves exactly one item behind.

Preconditions

  • Signed in as the owner of a freshly provisioned organization
  • A client and a project (with the project belonging to that client) already exist
  • One additional item has been seeded via the API
  • The Additional Items page is open on the "Additional items" tab and has been reloaded so the seeded item is visible

Steps

  1. Confirm the grid initially contains 1 additional item.
  2. Create a second additional item titled "title" via the UI: open the create modal, enter the name, select the seeded client and project, then click "Save". Expected: A "Created" confirmation popup appears and the grid now shows 2 additional items.
  3. Open the row menu for the "title" item and click "Move to trash". Expected: The delete-confirmation modal appears.
  4. Confirm the deletion in the modal. Expected: A "Moved to trash" popup appears and the grid now contains exactly 1 additional item.
  • Spec: playwright/tests/integration/additionalItem.spec.ts (line 318)