Skip to content

Woo-dashboard โ€” tests

Frontend: 15 files ยท 77 tests. E2E: no spec drives it; one accessibility scan loads it.

The Woo dashboard is the most thinly tested of the four boards by test count, while reporting high coverage percentages. Both things are true at once, and the combination is worth understanding before reading the numbers as reassurance.


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, every per-file count on this page the same as on 7, 12, 14 and 18 November, and the counts below are read from Vitest's JSON report of that run. v2026.11.6 edited one test file here without changing its count: WooNoAccessPanel.test.tsx gained an assertion for the IOU_WOO role, the Entra role the Woo board now has, and still holds one test. Every count is the same as on 30 September and 3 and 9 October. The releases since touched this board's source only to move its colours onto the shared tokens (charts.tsx, WooNoAccessPanel.tsx, dashboard-woo.css); no test changed.

Area Files Tests
components/WooDashboard 12 43
pages/woo (data and config) 2 22
pages/WooDashboard.test.tsx 1 12
File Tests Covers
pages/woo/woo.data.test.ts 19 The board's data module
pages/WooDashboard.test.tsx 12 The page container
components/WooDashboard/Register.test.tsx 8 The register section
components/WooDashboard/WooCommandPalette.test.tsx 8 Command palette
components/WooDashboard/charts.test.tsx 7 Chart rendering
components/WooDashboard/WooSectionRouter.test.tsx 7 Section routing
pages/woo/modes.config.test.ts 3 Mode configuration
components/WooDashboard/Bezwaar.test.tsx 2 Objections
components/WooDashboard/Proces.test.tsx 2 Process view
components/WooDashboard/Publicatie.test.tsx 2 Publication
components/WooDashboard/Verzoeken.test.tsx 2 Requests
components/WooDashboard/WooDock.test.tsx 2 The dock
components/WooDashboard/Overzicht.test.tsx 1 Overview
components/WooDashboard/Tijdigheid.test.tsx 1 Timeliness
components/WooDashboard/WooNoAccessPanel.test.tsx 1 The no-access panel

woo.data.test.ts (+4) and WooDashboard.test.tsx (+3) grew in v2026.09.15's branch-margin work; the other counts are as they were on 28 September.

Coverage on 27 November, as on 30 September and 3 and 9 October: components/WooDashboard 98.26 / 94.78 / 98.52 / 98.57 and pages/woo 99.13 / 100 / 100 / 99 โ€” the latter up from 96.55 / 84.12 / 94.44 / 98.01.

High coverage, few assertions

Eight of the twelve component files carry one or two tests each. Those render the section and assert it renders โ€” which executes nearly every line in a presentational component and so scores 98%, without asserting much about what it renders.

That is a legitimate scoping choice for presentational sections, and it is the same "critical interactions only" approach used across the frontend. But it means this board's coverage percentage is a weaker signal than the identical percentage on, say, pages/infra-board, where 108 tests across six files are asserting real behaviour. Read the test count alongside the percentage.


E2E

No spec drives this board. Verified against packages/frontend/e2e/ on 30 August 2026, at ae06c9e on 30 September, in the full frontend runs of 3 and 9 October, and in those of 7 and 14 November, whose 61 and 67 tests include none that drives it. Since v2026.11.0 accessibility.spec.ts signs in as test-woo-flevoland, waits for /dashboard/woo and scans it with axe-core (one test, passing on 7 and 14 November) โ€” that proves the page renders and meets the accessibility baseline, not that any of its sections work. Otherwise login-redirect only checks that test-woo-flevoland lands on it, and v2026.10.1's landing-access-denied opens the Woo card as a caseworker to assert the landing page's Geen toegang tot Woo-dashboard dialog, which is the landing page's behaviour, not the board's โ€” not inferred from a changelog. It is still the only board in that position; see Coverage per board.

As with Infra-board, this is a gap rather than a decision, and the case for closing it is a little stronger here: the combination of few assertions and no end-to-end coverage means a broken write path or an empty panel would pass everything currently in place.

The PA cockpit suite is the model โ€” mock mode driven against the real store, no mocking, deterministic fixtures. See PA cockpit โ†’ Why mock mode is worth an E2E suite.