Skip to content

Infra-board โ€” tests

Frontend: 22 files ยท 342 tests, including the shared signing panel and the shared linked-documents components. E2E: 2 specs ยท 8 tests โ€” 7 passed and 1 skipped on 14 November 2026, as on 3 and 9 October and 7 November; carried forward, not re-run on 18 or 27 November: no spec changed.

The infra-board is well covered at the unit level โ€” src/pages/infra-board is at 100% statements, functions and lines and 98.75% branches, the best-covered substantial area in the frontend โ€” and its two Playwright specs divide the board between them: one driving the shell, one driving the work that happens inside it.


Frontend

Measured on 27 November 2026 at aa68931, a tree identical to main at 7416c65 (v2026.11.6): the frontend package ran 147 files and 1862 tests, all passing, and the counts below are read from Vitest's JSON report of that run โ€” see Overview for how the frontend was measured.

v2026.11.6 added 62 tests to this board and three files, for the linked eDOCS documents a RIP task needs before it may close. The three files are new in the shared components/rip-documents/ (see the note below): TaskCompletion.test.tsx (23), model.test.ts (23) and DocumentsPanel.test.tsx (10). PhaseDetail.test.tsx went 31 โ†’ 35 โ€” the eDOCS column, the blockade on a task whose document is missing, and the selection by instance โ€” and ProjectDetail.test.tsx 27 โ†’ 29: the Documenten panel, Taak openen, and a refresh after a task completes. pages/infra-board/rip-model.test.ts was edited and kept its 26.

History: v2026.11.5 added two tests to this board and no file. InfraCommandPalette.test.tsx went 9 โ†’ 10: the palette finds a live project waiting between phases and opens it on its instance (#382). signing/SigningPanel.test.tsx went 16 โ†’ 17: the panel explains a signer who is the ValidSign sender, and offers no retry. The other per-file counts are as on 14 November. services/infra.api.test.ts, 38 โ†’ 41 for the shared data under its provider (#78), belongs to no board.

History: v2026.10.3 added 19 tests to this board and no file. The project page now draws its process through the shared ProcessView, with the legend, the viewer's lanes and the task marks (ProjectDetail.test.tsx 21 โ†’ 27), and the portfolio keeps projects waiting between phases, from the finished instances of every phase (infra-board.data.test.ts 34 โ†’ 45, Portfolio.test.tsx 11 โ†’ 12, pages/InfraBoardDashboard.test.tsx 18 โ†’ 19). The client for GET /v1/rip/phases/completed is tested in services/infra.api.test.ts, which belongs to no board.

Area Files Tests
pages/infra-board (data and pure logic) 6 119
components/InfraBoardDashboard 9 122
pages/InfraBoardDashboard.test.tsx 1 19
components/signing (the signing panel, shared with the caseworker inbox) 3 26
components/rip-documents (the linked documents, shared with the caseworker inbox) 3 56

The linked documents live in components/rip-documents/, and are counted here once

v2026.11.6 put the linked-documents components in a shared components/rip-documents/: the Infra-board's project page and phase detail use them, and so does the caseworker's Taken inbox, which renders TaskCompletion for a RIP task (TakenInbox.tsx:523). As with the signing panel, the directory's tests are counted once, on this page, and not on the Caseworker page as well:

File Tests Covers
rip-documents/TaskCompletion.test.tsx 23 New. Completing a task with a B document, with B+ figures and the kredietcheck, with optional and map documents, and a task without linked documents
rip-documents/model.test.ts 23 New. Amounts and figures, a task's linked documents and its completion state, the kredietcheck, the work-in-progress summary, dates, and the error texts
rip-documents/DocumentsPanel.test.tsx 10 New. The project's Documenten panel and the Beslispunt

Coverage on 27 November: components/rip-documents 97.37 / 93.44 / 98.75 / 98.66 over four source files โ€” TaskCompletion.tsx at 100 on all four, model.ts at 100 / 96.77 / 100 / 100, DocumentsPanel.tsx at 100 / 91.25 / 100 / 100 and TaskDocuments.tsx at 94.96 / 92.69 / 97.87 / 97.43, the lowest of the four: it has no test file of its own and is covered through TaskCompletion.test.tsx.

The signing panel moved to components/signing/, and is counted here once

Until v2026.10.0 SigningPanel and its tests lived in components/InfraBoardDashboard/. v2026.10.0 moved them to the shared components/signing/, behind a useTaskSignature hook that every task view asks whether a task signs through ValidSign, so the caseworker inbox renders the same panel โ€” see the signing feature. The directory's tests are counted once, on this page, where the panel started, and not on the Caseworker page as well:

File Tests Covers
signing/SigningPanel.test.tsx 17 The panel an approval task renders in place of a form; since v2026.10.0 it tells its host once about a decline, so the task list can move on, and since v2026.11.5 it explains a signer who is the ValidSign sender (15 on 30 September, in InfraBoardDashboard/; 16 on 14 November)
signing/useTaskSignature.test.ts 5 New. Loading until the signing spec arrives; no fetch without a task; no spec when the fetch fails or answers success: false, so the caller falls back to the form; and never the previous task's spec after switching tasks
signing/resolveSigningUrl.test.ts 4 Resolving the signing ceremony's URL โ€” moved unchanged

Coverage on 18 November: components/signing 93.22 / 89.15 / 95.65 / 96.19 (93.1 / 88.75 / 95.65 / 96.11 from 3 October to 14 November), with SigningPanel.tsx at 86.56% branches (85.93% before v2026.11.5) and the other two files at 100 on all four.

The phase swimlane's tests moved to components/process/

PhaseSwimlane.test.tsx lived in components/InfraBoardDashboard/ until v2026.09.14, with 22 tests on 28 September. The caseworker's process view needed the same swimlane and the same phase stepper, so both components and their tests moved to the shared components/process/ directory, where PhaseSwimlane.test.tsx now holds 48 and PhaseStepper.test.tsx 7. Since v2026.10.3 this board draws its process through ProcessView, which wraps both, and process-view-guard.test.ts keeps any board from importing the swimlane directly. The directory is counted once, on the Caseworker page, rather than on both.

File Tests Covers
pages/infra-board/infra-board.data.test.ts 45 The board's data module โ€” since v2026.10.3 the waiting rows built from finished phases (34 on 9 October)
components/InfraBoardDashboard/PhaseDetail.test.tsx 35 Phase detail view; since v2026.11.6 the eDOCS column, the blockade on a task whose document is missing, and the selection by instance (31 on 18 November)
components/InfraBoardDashboard/ProjectDetail.test.tsx 29 Project detail, since v2026.10.3 drawn through ProcessView with the viewer's marks, a waiting project's finished phase, a refresh of the open tasks after a claim, and the shared signing panel through useTaskSignature; since v2026.11.6 the Documenten panel, Taak openen and a refresh after completion (21 on 9 October, 27 on 18 November)
pages/infra-board/rip-model.test.ts 26 The RIP phase model
pages/InfraBoardDashboard.test.tsx 19 The page container (18 on 9 October)
pages/infra-board/rail-stats.test.ts 15 Rail statistics
components/InfraBoardDashboard/InfraSectionRouter.test.tsx 14 Section routing
pages/infra-board/rip-phases.catalog.test.ts 14 The twelve-phase catalogue
components/InfraBoardDashboard/FaseladderOverview.test.tsx 11 Faseladder overview
components/InfraBoardDashboard/Portfolio.test.tsx 12 Portfolio view, with waiting projects (11 on 9 October)
pages/infra-board/rip-phase-counts.test.ts 10 Phase counts
components/InfraBoardDashboard/InfraCommandPalette.test.tsx 10 Command palette, since v2026.11.5 with projects waiting between phases (9 on 14 November)
pages/infra-board/modes.config.test.ts 9 Mode configuration
components/InfraBoardDashboard/MijnDag.test.tsx 6 The "Mijn Dag" section
components/InfraBoardDashboard/InfraDock.test.tsx 4 The dock
components/InfraBoardDashboard/InfraNoAccessPanel.test.tsx 1 The no-access panel

Coverage on 27 November: pages/infra-board 100 / 98.75 / 100 / 100 (98.74 branches on 18 November, 98.47 on 9 October), and components/InfraBoardDashboard 95.49 / 90.26 / 93.02 / 96.16 (95.49 / 90.17 / 92.63 / 96 on 18 November, 95.43 / 90.21 / 92.59 / 95.95 from 7 to 14 November, 95.34 / 89.91 / 92.59 / 95.85 on 9 October), over ten source files. ProjectDetail.tsx reads 89.08% branches and 85.71% functions (89.02 and 83.33 on 18 November), PhaseDetail.tsx 86.78% branches โ€” the lowest in the directory โ€” InfraCommandPalette.tsx 89.28% branches and Portfolio.tsx 100% branches.

The gap between those two rows is the usual one: the pure data and model modules are exhaustively covered, while the components carry the "critical interactions only" scoping used across the frontend.


E2E

Two specs, eight tests. Last measured 14 November 2026, and not re-run on 18 November or on 27 November, when no spec had changed, as part of the full frontend run against the developer's already-running local stack: 60 passed, 7 skipped, 3.9m. Before that, 7 November 2026: 56 passed, 5 skipped, 6.4m; 9 October 2026: 42 passed, 5 skipped, 2.6m; 3 October 2026: 27 passed, 1 skipped, 2.8m; and 30 August 2026 against acc at 15dfbf9: all 27 passing, 1.9m.

Spec Tests 14 November Covers
infra-board-journey.spec.ts 7 7 passed The shell
rip-r21-journey.spec.ts 1 skipped, by its own guard The work

These eight are still the largest share of any board in the frontend suite โ€” see Coverage per board for how they sit against the other fifty-nine. Two specs new since 9 October also reach this board without belonging to it alone: process-view.spec.ts checks the project page against the shared ProcessView rules and, on a controlled R2.4 instance, the jouw taak / geclaimd / open marks and the parallel bars (two of its three tests, both passing), and accessibility.spec.ts scans the Infra-board for Flevoland (one of its ten, passing).

infra-board-journey.spec.ts drives the board itself: opening on Mijn dag with all three werkmodi available, each werkmodus reaching its own surface and back, the rail carrying all twelve RIP phases with each opening its own detail, every account/IOU/hulpmiddelen section rendering real content, the RIP archive opening from its own rail entry rather than the IOU one, and the command palette jumping straight to a section. One test is a full sweep asserting no failed request and no console error across the board.

rip-r21-journey.spec.ts starts a RIP R2.1 process, works every user task, and completes the phase. Its own header puts the division plainly: the first spec covers the shell, this one covers the work. It signs in as test-infra-flevoland, navigates the Faseladder rail to R2.1, and drives all twelve tasks โ€” the last of which now renders the signing panel rather than a form.

It carries two test.skip(true, reason) calls inside the test body, which skip the run when its preconditions are not met and log the reason first. It did not skip on 30 August, which predates both. On 3 October it did, and again on 9 October, and said why before creating anything:

[rip-r21-journey] SKIPPED โ€” local dev stack signs with the real ValidSign
(VALIDSIGN_STUB_MODE=false), and this journey will not request a binding
signature. Nothing was created โ€” the refusal happens before
POST /task/:id/package. Run it against a target where VALIDSIGN_STUB_MODE=true.

On 7 November it skipped by its other guard, and again on 14 November: an R2.1 instance was already running on the local engine, and the spec cannot tell a foreign instance from its own โ€” a fallback-started R2.1 carries no project number โ€” so it refuses rather than risk working someone else's process to completion.

That is the guard doing its job, not a gap in the run: a stack configured for real signing cannot complete the journey's approval task without a binding signature, and the spec refuses before it sends a package. So the R2.1 work has not been driven end to end by these pages since 30 August; that needs a run against a target in stub mode.

Observed (#508): R2.1 now needs a document, and the journey stalls there

Since v2026.11.6, R2.1's Uitvoeren PSU en aanvullen Projectplan task declares a linked document (ronl:linkedDocumentRef="rip-psu-presentatie:โ€ฆ"), and the backend refuses to complete a task whose linked document is missing with 422 LINKED_DOCUMENT_MISSING. rip-r21-journey.spec.ts drives R2.1 to completion and links no document. What v2026.11.6 named as a risk is now observed, in the developer's run for v2026.11.7 against localhost with the new RIP models (linked-data-explorer c318d27 and 4f04bc5): the spec clicks submit and waits 30 s for a POST โ€ฆ/task/{id}/complete that never comes (rip-r21-journey.spec.ts:720), recorded as #508. Promotion #510 attributes it to the completion gate keeping submit disabled until the PSU-presentatie is linked, a spec gap rather than a regression; #508 itself does not yet name the task, and also lists as leads a recipe that no longer matches the new form and the task's new candidate group, rip-projectleider. The models that declare linked documents are not yet deployed on ACC or production; the developer's ACC run for v2026.11.7 passed apart from the known Keycloak accessibility failures (#497). The spec was not run for these pages.

This page said none for six days

Both specs landed on 24 August 2026. This page, its at-a-glance line and the testing overview's roadmap all continued to say the board had no end-to-end coverage through two subsequent documentation syncs. The specs were visible the whole time in packages/frontend/e2e/; nothing in a changelog-driven sync pointed at them, because neither release that added them was the one being documented.

The lesson is narrow and worth stating: a per-board page's E2E section cannot be derived from the release being synced. It has to be re-derived from the spec directory, every time.