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¶
- Create a COMPLETED_WORK_LIST protocol (item price 1000) — Expected: detail page
- Click "Upravit", set the item description to "E2E upraveno" and save — Expected: edit modal closes
- Re-open "Upravit" — Expected:
input[name="itemDescription"]has value "E2E upraveno"
Related¶
- Spec:
tests/e2e/tests/protocols.spec.ts