Skip to content

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

  1. Open the "Seskupené protokoly" tab — Expected: treegrid collapsed
  2. Assert both contract group rows — Expected: "<contract A> (1)" and "<contract B> (1)"
  3. Expand contract A — Expected: received-order group "<orderA> (1)"
  4. Expand contract B — Expected: received-order group "<orderB> (1)"
  • Spec: tests/e2e/tests/protocols.spec.ts
  • Component: GroupedProtocolGrid — server-side row grouping by [contract, receivedOrder]