Skip to content

154 — Protocol appears in flat grid and grouped by contract grid

Description

The /protocols page has two tabs: a flat grid ("Protokoly") and a grouped grid ("Seskupené protokoly") that groups protocols by contract. A created protocol appears in both: as a row in the flat grid and under its contract group in the grouped treegrid.

Preconditions

  • Clean database (TestControl.cleanDb())
  • User logged in with ADMIN and ACCOUNTING roles
  • Customer, contract and received order created via API

Steps

  1. Create a WORK_HANDOVER protocol — Expected: created
  2. On the flat tab, assert the row — Expected: code prefix PPD, type chip, IN_PROCESS state chip, order binding
  3. Switch to the "Seskupené protokoly" tab — Expected: treegrid group row shows the contract title in the __row_group_by_columns_group__ column
  • Spec: tests/e2e/tests/protocols.spec.ts
  • Components: ProtocolGrid (flat), GroupedProtocolGrid (grouped, role=treegrid)