Skip to content

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

  1. Create a WORK_HANDOVER protocol through the create modal — Expected: on the detail page
  2. 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
  3. Click "Vygenerovat a podepsat" (protocol-generate-pdf-with-defects) — Expected: a *.pdf download is triggered
  4. Return to /protocolsExpected: state chip is protocol-state-chip-SIGNED_AND_CONFIRMED_WITH_ISSUES
  • Spec: tests/e2e/tests/protocols.spec.ts
  • Uses fixture tests/e2e/test-files/test-document.pdf