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¶
- Confirm the grid initially contains 1 additional item.
- 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.
- Open the row menu for the "title" item and click "Move to trash". Expected: The delete-confirmation modal appears.
- Confirm the deletion in the modal. Expected: A "Moved to trash" popup appears and the grid now contains exactly 1 additional item.
Related¶
- Spec:
playwright/tests/integration/additionalItem.spec.ts(line 318)