160 — Delete a protocol from the grid¶
Description¶
A protocol can be deleted from the flat grid via its row remove action, which opens a delete-confirmation dialog. Confirming removes that protocol and leaves the others intact.
Preconditions¶
- Clean database (
TestControl.cleanDb()) - User logged in with ADMIN and ACCOUNTING roles (remove action is role-gated)
- One customer/contract/received order, with two COMPLETED_WORK_LIST protocols created on it
Steps¶
- Open the flat grid — Expected: 2 rows
- Click the remove action (
removeBtn) on one row and confirm with "Ano" — Expected: delete-confirmation dialog confirmed - Assert the grid — Expected: the deleted code is gone, exactly 1 row remains
- Assert the remaining row — Expected: the kept code, with
COMPLETED_WORK_LISTtype chip,IN_PROCESS, bound to the order
Related¶
- Spec:
tests/e2e/tests/protocols.spec.ts ProtocolGridDataGridActionRemove→DeleteConfirmationModal(confirm = "Ano") →useRemoveProtocol