158 — Grouped grid nests protocols under contract and received order with counts¶
Description¶
The "Seskupené protokoly" (grouped) tab renders a treegrid grouped contract →
received order → protocol. Groups are collapsed by default. A contract group
shows its received-order count; a received-order group shows its protocol count;
expanding the order reveals each protocol as a leaf row with its type chip.
Preconditions¶
- Clean database (
TestControl.cleanDb()) - User logged in with ADMIN and ACCOUNTING roles
- One customer, contract and received order created via API
- Three protocols (WORK_HANDOVER, COMPLETED_WORK_LIST, DOCUMENTATION) created on that order
Steps¶
- Open the "Seskupené protokoly" tab — Expected: treegrid is collapsed
- Assert the contract group row — Expected:
"<contract> (1)"(one received order) - Expand the contract group (
zobrazit potomky) — Expected: received-order group"<orderCode> (3)"appears - Expand the received-order group — Expected: 3 protocol leaf rows, each with
protocol-type-chip-WORK_HANDOVER/…COMPLETED_WORK_LIST/…DOCUMENTATION
Related¶
- Spec:
tests/e2e/tests/protocols.spec.ts - Component:
GroupedProtocolGrid(role=treegrid; group column__row_group_by_columns_group__); contract count = #received orders, order count = #protocols