146 — Inquiry export — grouped rows with count column¶
Description¶
Creates 3 openings (2 with identical spec + 1 different), exports the inquiry XLSX ("Export poptavky"), and verifies the grouped format: 2 rows, one with Pocet=2 and one with Pocet=1.
Note: Currently blocked by backend bug (Prisma groupBy orderBy id not in by-fields). Ticket created.
Preconditions¶
- Clean database
- User logged in with ADMIN role
- Backend fix for groupBy query deployed
Steps¶
- Create project, create 2 identical openings + 1 different — Expected: 3 rows in grid
- Click "Export poptavky" — Expected: XLSX downloads
- Parse XLSX, assert 2 rows — Expected: Grouped by spec
- Assert row 1: Pocet=2 (identical spec) — Expected: Merged
- Assert row 2: Pocet=1 (unique spec) — Expected: Separate
Related¶
- Spec:
tests/e2e/tests/doors.spec.tsTC-9 - Blocked by: Prisma groupBy bug (P2019)