Test the two gestures the rework is actually about

The browser suite checked what the app renders but nothing about authoring,
which is the part that changed. It now registers a fresh account and walks
the wizard, including the case where a partner added mid-wizard has to appear
by name without navigating away first, and it drags a range on the calendar,
deletes the period, and reloads to confirm the days really went. Both are
regressions that were found by hand within the last day and would have been
found here instead.

Doing this surfaced that the age-four spec had been asserting on figures that
moved inside a collapsed section, so it had stopped checking anything. The
stale note about the retired tips page went too.
This commit is contained in:
2026-09-18 00:50:01 +02:00
parent c5587c5b46
commit bcc93e5c03
6 changed files with 257 additions and 9 deletions
+6 -9
View File
@@ -8,18 +8,15 @@ export interface MainPage {
* The authenticated pages scanned by the "no raw UUIDs" and "no console
* errors" guards.
*
* TODO(tips-wire-format): Tips (`/tips`, root testid `tips-page`) is
* deliberately left out. Its wire-format mapping (backend snake_case ->
* frontend camelCase) was never written, so today it renders blank — a fix
* is in flight in a parallel task and touching it here would collide. Once
* that fix lands, add:
* { path: '/tips', testId: 'tips-page', name: 'Tips' }
* to this list. Both `no-uuids.spec.ts` and `console-errors.spec.ts`
* iterate this array, so nothing else needs to change.
* Plan and Tips were removed as standalone pages/tabs (leave is now
* authored directly on the calendar, and Översikt carries the headline
* figures); `/plan` and `/tips` now fall through App.tsx's catch-all route
* and redirect to `/` instead of rendering a page. That redirect is covered
* at the unit level in `src/App.test.tsx` ("retired /plan and /tips
* routes"), so neither belongs in this list.
*/
export const MAIN_PAGES: MainPage[] = [
{ path: '/', testId: 'dashboard', name: 'Dashboard' },
{ path: '/calendar', testId: 'calendar', name: 'Calendar' },
{ path: '/plan', testId: 'plan-page', name: 'Plan' },
{ path: '/settings', testId: 'settings-page', name: 'Settings' },
]