149 — Work handover signed and confirmed WITH ISSUES¶
Description¶
A WORK_HANDOVER protocol can reach the SIGNED_AND_CONFIRMED_WITH_ISSUES state
via the "Vady a nedodělky" (defects) path: upload a defects file, then generate
the "with issues" protocol. This status is exclusive to WORK_HANDOVER.
Preconditions¶
- Clean database (
TestControl.cleanDb()) - User logged in with ADMIN and ACCOUNTING roles
- User signature set up; OneDrive / SharePoint mock available
- Customer, contract and received order created via API
Steps¶
- Create a WORK_HANDOVER protocol through the create modal — Expected: on the detail page
- Upload a defects file via "Vady a nedodělky" → "Nahrát" → save — Expected: the "Protokol s vady a nedodělky" section with its generate button appears
- Click "Vygenerovat a podepsat" (
protocol-generate-pdf-with-defects) — Expected: a*.pdfdownload is triggered - Return to
/protocols— Expected: state chip isprotocol-state-chip-SIGNED_AND_CONFIRMED_WITH_ISSUES
Related¶
- Spec:
tests/e2e/tests/protocols.spec.ts - Uses fixture
tests/e2e/test-files/test-document.pdf