Skip to content

155 — Edit an existing protocol

Description

An existing protocol can be edited from its detail page. For a COMPLETED_WORK_LIST protocol, changing the item description via "Upravit" persists and is reflected when the edit modal is re-opened.

Preconditions

  • Clean database (TestControl.cleanDb())
  • User logged in with ADMIN and ACCOUNTING roles
  • Customer, contract and received order created via API

Steps

  1. Create a COMPLETED_WORK_LIST protocol (item price 1000) — Expected: detail page
  2. Click "Upravit", set the item description to "E2E upraveno" and save — Expected: edit modal closes
  3. Re-open "Upravit" — Expected: input[name="itemDescription"] has value "E2E upraveno"
  • Spec: tests/e2e/tests/protocols.spec.ts