Skip to content

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

  1. Open the flat grid — Expected: 2 rows
  2. Click the remove action (removeBtn) on one row and confirm with "Ano" — Expected: delete-confirmation dialog confirmed
  3. Assert the grid — Expected: the deleted code is gone, exactly 1 row remains
  4. Assert the remaining row — Expected: the kept code, with COMPLETED_WORK_LIST type chip, IN_PROCESS, bound to the order
  • Spec: tests/e2e/tests/protocols.spec.ts
  • ProtocolGrid DataGridActionRemoveDeleteConfirmationModal (confirm = "Ano") → useRemoveProtocol