159 — Grouped grid lists a separate group per contract¶
Description¶
Protocols on different contracts are grouped separately in the grouped grid: two contracts (each with its own received order and protocol) produce two top-level contract groups, each expanding to its own received-order group.
Preconditions¶
- Clean database (
TestControl.cleanDb()) - User logged in with ADMIN and ACCOUNTING roles
- Two customers/contracts/received orders created via API, one protocol on each order
Steps¶
- Open the "Seskupené protokoly" tab — Expected: treegrid collapsed
- Assert both contract group rows — Expected:
"<contract A> (1)"and"<contract B> (1)" - Expand contract A — Expected: received-order group
"<orderA> (1)" - Expand contract B — Expected: received-order group
"<orderB> (1)"
Related¶
- Spec:
tests/e2e/tests/protocols.spec.ts - Component:
GroupedProtocolGrid— server-side row grouping by [contract, receivedOrder]