Caseworker β tests¶
The caseworker portal is the oldest and largest board, and the one whose end-to-end journeys exercise the full Operaton stack.
Frontend: 60 files Β· 677 tests, including the shared process view. E2E: 4 specs Β· 4 tests, all passing on 14 November 2026; carried forward, not re-run on 18 or 27 November: no spec changed. Proces starten, new in v2026.11.3, has no E2E.
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 per-file and per-area counts below are read from Vitest's
JSON report of that run, which sums to the runner's total β see
Overview for how the frontend was measured.
v2026.11.6 added nine tests here and no file, for the Infra-board's linked
documents, which the Taken inbox shows for a RIP task.
CaseworkerDashboardV2/TakenInbox.test.tsx went 32 β 34: the inbox
renders TaskCompletion, with the linked-document block for a RIP task.
CaseworkerDashboard/TaskFormViewer.test.tsx went 14 β 21: the form's
new extraVariables and blockedText, and a 422 shown through
onMissing. The linked-documents components themselves, in the shared
components/rip-documents/, are counted on the
Infra-board page.
History, 18 November: v2026.11.5 added no test here and no file. Every count on this page was as on 14 November.
History, 14 November: v2026.11.4 added one test here and no file.
CaseworkerDashboardV2/ProcesStartenSection.test.tsx went 17 β 18: the
button now reads Start proces, and the new test keeps the visible text in
the button's accessible name while the process starts, Bezig⦠(WCAG 2.5.3,
Label in Name). No other file on this board changed.
History, 14 November: v2026.11.3 added one file and 21 tests here, for Proces starten:
the caseworker starts a process the organisation's model lets them start,
from the Werk rail. CaseworkerDashboardV2/ProcesStartenSection.test.tsx
is new, with 17; pages/caseworker-v2/modes.config.test.ts went 24 β
27 β the section sits in Werk directly under Taken, needs no role
beyond being signed in, and shows only for a tenant that lists it,
Caribisch Nederland (bes) for now β and
CaseworkerDashboardV2/SectionRouter.test.tsx 31 β 32, routing
proces-starten to it. No other file on this board changed.
History, 12 November: v2026.11.2 changed one assertion here and no count:
pages/CaseworkerDashboardV2.test.tsx now finds the βK button by its visible
text, Spring naar een sectieβ¦, because the button lost its aria-label
(WCAG 2.5.3, Label in Name).
v2026.10.3 to v2026.11.1 changed nothing in this board's own directories
and grew the shared process view by 59 tests. components/process/ went
from 8 files and 123 tests to 14 files and 182: ProcessView, the one
rendering the Caseworker overview and the Infra-board's project page now share,
brought six new files, and the swimlane and overlay tests grew with the legend,
the task marks and the gateway shapes. TakenInbox.test.tsx kept its 32 with
Procesgegevens now its own folded component. The colour work of v2026.11.0
added no test to this board: its guards (css-hex.test.ts,
css-tokens.test.ts and the rest) sit at the package root and belong to no
board.
History, 9 October: v2026.10.1 took eleven tests off this board and added none of its own.
The DVTP sections went from the caseworker dashboard, and their two test
files with them β CaseworkerDashboard/DvtpStartSection.test.tsx (5) and
DvtpTakenSection.test.tsx (7). pages/CaseworkerDashboardV2.test.tsx went
from 14 to 15: logging out now returns to the landing page of the user's
own tenant, or to the plain landing page without a tenant claim.
SectionRouter.test.tsx kept its 31, the two DVTP section cases folded into
one it.each that checks neither is routed any more, and
TakenInbox.test.tsx its 32, with the decline message now reading "Niet
ondertekend β het proces gaat verder via de afwijzingsroute." The release's
new frontend tests β the organisation landing pages, the no-access dialog and
the citizen services β belong to no board; see
Overview.
The CaseworkerDashboard/ directory is not only this board's: it is the
shared section-component library, reused across three of the four V2
dashboards. Changes there ripple, which is why it carries 239 tests across 26
files on its own. components/process/ is shared the same way: the
caseworker's process view is built from it, and the Infra-board's project
detail draws its phase stepper and swimlane with the same components.
The signing panel is shared too, and counted on the Infra-board page
Since v2026.10.0 the caseworker inbox renders the same
signing panel as the Infra-board:
SigningPanel and useTaskSignature moved to the shared
components/signing/, and TakenInbox asks useTaskSignature whether a
claimed task signs through ValidSign before it renders a form. That
directory's 3 files and 26 tests are counted once, on
Infra-board, where the panel started β not
here as well. What this board adds is in TakenInbox.test.tsx, below.
The same holds since v2026.11.6 for components/rip-documents/,
whose TaskCompletion the inbox renders for a RIP task
(TakenInbox.tsx:523): its 3 files and 56 tests are counted on the
Infra-board page, not here.
| Area | Files | Tests |
|---|---|---|
components/CaseworkerDashboard (shared section library) |
26 | 239 |
components/CaseworkerDashboardV2 (including regelsimulatie/) |
17 | 214 |
components/process (the process view, shared with the Infra-board) |
14 | 182 |
pages/caseworker-v2 (modes.config) |
1 | 27 |
pages/CaseworkerDashboardV2.test.tsx |
1 | 15 |
Besluitvorming β new in v2026.10.0, in the shared section library:
| File | Tests | Covers |
|---|---|---|
CaseworkerDashboard/BesluitOverzichtSection.test.tsx |
7 | Lopende and Afgeronde besluiten: refused without a besluit role, running besluiten with their current step, completed ones with their outcome, a besluit opened to its details with the empty ones left out, and a retry when the list cannot be loaded |
CaseworkerDashboard/BesluitStartSection.test.tsx |
3 | Besluit voorbereiden: refused without besluit-indiener, the process started and confirmed, and a failed start reported |
pages/caseworker-v2/modes.config.test.ts gained three with them β the two
besluit lists in the tenant sections, and Flevoland offering the start to its
indieners β and CaseworkerDashboardV2/SectionRouter.test.tsx three, one per
besluit section.
Largest files outside components/process/:
| File | Tests | Covers |
|---|---|---|
CaseworkerDashboardV2/TakenInbox.test.tsx |
34 | The task list β filters, the phase hint, the Procesgegevens bar, the process view a selected task opens, and since v2026.10.0 the signing panel in place of the form for a task that must be signed, nothing while the signing spec is still loading, the fallback form when it cannot be fetched, and a refreshed list after a decline; since v2026.11.6 TaskCompletion and the linked-document block for a RIP task (28 on 30 September, 32 on 18 November) |
CaseworkerDashboardV2/SectionRouter.test.tsx |
32 | Section routing and the shell's state machine; since v2026.11.3 proces-starten too |
pages/caseworker-v2/modes.config.test.ts |
27 | Mode configuration, a pure data module, read against the real tenants.json; since v2026.11.3 where Proces starten sits and which tenant shows it |
CaseworkerDashboardV2/regelsimulatie/simEngine.test.ts |
22 | The deterministic budget-exhaustion simulator |
CaseworkerDashboard/TaskFormViewer.test.tsx |
21 | Rendering and submitting an Operaton task form; since v2026.11.6 extraVariables, blockedText, and a 422 shown through onMissing (14 on 18 November) |
CaseworkerDashboard/McpChatSection.test.tsx |
20 | The MCP chat surface |
CaseworkerDashboardV2/ProcesStartenSection.test.tsx |
18 | New in v2026.11.3, with 17. Proces starten: a row per process with a Start proces button (since v2026.11.4; its accessible name starts with the visible text, Bezig⦠included), nothing to start, a process without a start form started at once and confirmed with a pointer to Taken, one with a form opened first, failures and their fallbacks, and an error when the list cannot be loaded |
CaseworkerDashboard/IouGebruiksscenarioSection.test.tsx |
17 | Usage-scenario section |
CaseworkerDashboard/RegelCatalogus.test.tsx |
16 | The rule catalogue |
CaseworkerDashboardV2/RegelSimulatie.test.tsx |
16 | The rule-simulation section |
CaseworkerDashboard/GereedschapSection.test.tsx |
15 | Tools section |
CaseworkerDashboardV2/regelsimulatie/SimTweak.test.tsx |
15 | Adjusting the simulation's parameters |
pages/CaseworkerDashboardV2.test.tsx |
15 | The page container β since v2026.10.1 logging out to the user's own tenant landing page |
The process view β new in v2026.09.14, and since v2026.10.3 the one rendering every dashboard uses (ProcessView):
| File | Tests | Covers |
|---|---|---|
process/PhaseSwimlane.test.tsx |
48 | The swimlane renderer, moved here from InfraBoardDashboard/ (22 tests there): collision stacking, readable gateway labels (edgeLabelText), the roomier density, and since v2026.10.3 the gateway shapes, the task marks and slim empty lanes (38 on 9 October) |
process/laneSteps.test.ts |
23 | Pure step-list logic: lane metadata, which lanes are the user's, the trail, the hand-overs between lanes, and gateways named by kind (19 on 9 October) |
process/processMarks.test.ts |
21 | New in v2026.10.3. Task marks (mine, claimed, open), the viewer's lanes, the legend entries β only what the diagram shows β gateway kinds and bare-id labels |
process/ProcessOverlay.test.tsx |
17 | The whole-process overlay, since v2026.10.3 drawn through ProcessView (13 on 9 October) |
process/ProcessLaneSteps.test.tsx |
15 | Processtappen per rol β the steps grouped by role (13 on 9 October) |
process/ProcessWhere.test.tsx |
12 | Waar sta ik β the phase and the step on the stepper; since v2026.10.0 nothing for a process without phases, and a process's own declared phases numbered and captioned under its own label (9 on 30 September) |
process/useTaskProcessContext.test.ts |
11 | Loading a task's process context across the call chain |
process/processContext.test.ts |
10 | buildProcessContext β splicing a sub-process's history into its parent's, in engine order, and carrying a declared phase set (9 on 30 September) |
process/PhaseStepper.test.tsx |
7 | The phase stepper, shared with the Infra-board |
process/ProcessView.test.tsx |
6 | New in v2026.10.3. Stepper slot, title bar, legend and swimlane assembled from a dashboard's data and the viewer |
process/ProcessVarsDisclosure.test.tsx |
3 | New in v2026.10.3. Procesgegevens, folded by default |
process/process-view-guard.test.ts |
3 | New in v2026.10.3. Nothing outside components/process imports PhaseSwimlane |
process/status.test.ts |
3 | New in v2026.10.3. The node status vocabulary and its token colours |
process/useViewer.test.ts |
3 | New in v2026.10.3. The viewer read from the Keycloak token |
Coverage on 27 November (statements / branches), from the run's coverage map:
components/CaseworkerDashboard 94.37 / 94.61 (94.2 / 94.51 on
18 November), components/CaseworkerDashboardV2 92.93 / 93.66 (92.92 /
93.66 for v2026.11.3), the regelsimulatie sub-directory 98.33 / 88.59, and
components/process 99.33 / 92.46. The two files v2026.11.6 changed read
TakenInbox.tsx 94.77 / 93.87 and TaskFormViewer.tsx 97.33 / 92.85,
with 100% functions and lines. ProcesStartenSection.tsx, new in
v2026.11.3, read 95.34 / 96.96, with 90% functions β 32 of 33 branches,
which the release notes give as 96.97%, rounded rather than truncated β and
has read 95.45 / 96.96 / 90.00 / 95.12 since v2026.11.4, statements and
lines up a little on the reworked button.
BesluitOverzichtSection.tsx is still the lowest file in the frontend by
branches, at 80.43% β half a point above the floor β and
process/phaseSet.ts, the phase set a process declares, is at 83.33%; they
are still the only two frontend files below 85, joined in the repository
since v2026.11.6 by the backend's rip-swimlane/document-spec.ts (84.21%); see
Coverage.
The simulator carries a real performance budget
simEngine.ts must process the default 3,150-application population in
under 250ms. That assertion does not run in the default suite β it
lives in simEngine.perf.test.ts and runs via npm run test:perf, without
file parallelism, as its own CI step. The reasoning is on
Overview.
E2E¶
Four specs drive this board specifically:
caseworker-journey.spec.ts (the Kapvergunning roundtrip),
zorgtoeslag-journey.spec.ts (a citizen submitting through a commercial
organisation, handled by the competent authority's caseworker),
thuisbatterij-journey.spec.ts (a Thuisbatterij subsidy application reviewed
by a caseworker, new in v2026.09.11) and heusdenpas-journey.spec.ts,
new in v2026.10.1: a Gemeente Heusden citizen applies for a Heusdenpas, and
test-caseworker-heusden checks completeness, reviews the outcome of the
untenanted SVB, SZW and Heusdenpas decisions, and informs the applicant β
the first journey on this board for an organisation other than Flevoland and
Dienst Toeslagen.
All four were last measured on 14 November 2026, and not re-run on 18 or 27 November, as part of the full
frontend run against the developer's already-running local stack (60 passed,
7 skipped, 3.9m): one test each, all passing β caseworker-journey in
9.3s, heusdenpas-journey in 11.5s, thuisbatterij-journey in 6.5s and
zorgtoeslag-journey in 5.4s. On 7 November they passed in 20.6s, 27.9s,
11.4s and 9.5s; on 9 October in 15.0s, 11.8s, 7.7s and 6.2s.
Two specs new since then touch this board without belonging to it alone:
process-view.spec.ts checks the Caseworker's process overview against the
shared ProcessView rules (one of its three tests, passing), and
accessibility.spec.ts scans Caseworker V2 for Flevoland and for Heusden
(two of its ten, both passing). Both are attributed on
E2E & live smoke. See E2E & live smoke, which
also tabulates v2026.10.1's specs for the citizen portal and the landing
pages β they reach this board's login but belong to no board.
The first three accept the task names linked-data-explorer's swimlane redesign
introduced β Beoordeling behandelaar: β¦ and Fase 6: Aanvrager informeren
over besluit β as well as the old English ones, so they pass against either
deployment: thuisbatterij-journey since v2026.09.12, the other two since
v2026.09.14. In v2026.10.1 caseworker-journey also began filling the
Kapvergunning forms by their Dutch labels, which linked-data-explorer's
fixtures now carry.
No spec drives Besluitvorming yet: the Besluit voorbereiden start and the Lopende and Afgeronde besluiten lists are covered by the unit tests above only, and so is the signing panel in the caseworker inbox.
Proces starten has no E2E either. No spec opens the section or starts a
process from it; ProcesStartenSection.test.tsx, modes.config.test.ts and
SectionRouter.test.tsx above are its only tests. v2026.11.3's one E2E
change, the bes entries in landing-single-board.spec.ts, signs
test-caseworker-bes in to this board from the landing page but goes no
further β see Coverage per board.
The other three specs measured here before are cross-cutting, not caseworker
This section used to read "five specs, twelve tests", counting
login-redirect, protected-route, tenant-isolation and smoke towards
this board. Those four cut across every board and belong to none β they are
now attributed as such in
Coverage per board, which is why this figure
dropped without any test being removed.
The 30 August run was against the corrected e2e-fixtures BPMNs redeployed
from the Linked Data Explorer, which confirmed that chain end to end; the
3 and 9 October runs passed the same globalSetup gates, which refuse to
start unless those fixtures are deployed β and, since v2026.10.1, the Heusden
bundle as well, which e2e:deploy-fixtures does not deploy; see
Deploying the E2E fixtures.
| Spec | Covers |
|---|---|
smoke.spec.ts |
App loads at /, LoginChoice renders, no console errors |
login-redirect.spec.ts |
One test per role (citizen / caseworker / infra / woo / PA) against the Flevoland tenant, driving the real Keycloak hosted login β 5 tests |
protected-route.spec.ts |
Cross-role ProtectedRoute redirect behaviour, and DigiD login still working after an unauthenticated visit to a protected route β 3 tests |
caseworker-journey.spec.ts |
A citizen submits a real Kapvergunning request via Operaton/DMN; the caseworker claims and completes both resulting tasks β a genuinely finalised roundtrip |
zorgtoeslag-journey.spec.ts |
A second deep journey β a commercial-org citizen submits a Zorgtoeslag claim, and the toeslagen caseworker completes both steps |
thuisbatterij-journey.spec.ts |
A third deep journey β a citizen applies for a Thuisbatterij subsidy, the six-decision DRD evaluates, and the caseworker reviews the resulting task |
heusdenpas-journey.spec.ts |
A fourth deep journey, new in v2026.10.1 β a Heusden citizen applies for a Heusdenpas, the Heusden caseworker checks, decides and informs, and the citizen sees the decided application once in Mijn aanvragen. Every step also submits a form with a required but hidden field |
tenant-isolation.spec.ts |
A real cross-tenant fixture β confirms a wrong-tenant caseworker does not see a task, and the right one does. Since v2026.09.14 it matches the review task by its English or Dutch name, so the negative check cannot pass on a name that no longer exists |
tenant-isolation.spec.ts is the empirical proof of the tenancy-scoping
behaviour described in
Processes β Tenancy and
Tasks β Visibility: a task raised under
one tenant is visible only to that tenant's caseworker.
What the suite needs running, and why it fails fast rather than starting anything itself, is on E2E & live smoke.