150 — WITH_ISSUES path restricted to work handover variant¶
Description¶
The "with issues" path (SIGNED_AND_CONFIRMED_WITH_ISSUES) is only available for
WORK_HANDOVER. A WORK_HANDOVER detail page shows the "Vady a nedodělky" section;
other variants (e.g. COMPLETED_WORK_LIST) do not, and expose no
protocol-generate-pdf-with-defects button.
Preconditions¶
- Clean database (
TestControl.cleanDb()) - User logged in with ADMIN and ACCOUNTING roles
- Customer, contract and received order created via API
Steps¶
- Create a WORK_HANDOVER protocol and open its detail page — Expected: "Vady a nedodělky" section is visible
- Create a COMPLETED_WORK_LIST protocol on the same order and open its detail page — Expected: no "Vady a nedodělky" section and no
protocol-generate-pdf-with-defectsbutton
Related¶
- Spec:
tests/e2e/tests/protocols.spec.ts