diff --git a/tests/e2e/registration.spec.ts b/tests/e2e/registration.spec.ts index 4c28e31..27167e5 100644 --- a/tests/e2e/registration.spec.ts +++ b/tests/e2e/registration.spec.ts @@ -1,11 +1,16 @@ import { expect, request, test } from '@playwright/test'; -// Walking-skeleton happy path (S-08d + S-09 + S-09b + S-12 + S-10a): a zorgprofessional logs in via -// mock DigiD and submits through the self-service portal → BFF → domain; the entry appears in the -// openbaar register as INGEDIEND; the citizen supplies the documents the process is waiting for -// (S-10a); a behandelaar then logs in to the behandel portal, finds the registration in the werkbak, -// and approves it (goedkeuren); the decision completes the Flowable Beoordelen task and flows via the -// ACL → NRC → event-subscriber → projection, and the openbaar register shows INGESCHREVEN. +// Walking-skeleton happy path (S-08d + S-09 + S-09b + S-12 + S-10a + S-19b-2): a zorgprofessional +// logs in via mock DigiD and submits through the self-service portal → BFF → domain; the entry +// appears in the openbaar register as INGEDIEND; the citizen supplies the documents the process is +// waiting for (S-10a); a behandelaar then logs in to the behandel portal, finds the registration in +// the werkbak, and approves it (goedkeuren); the decision completes the Flowable Beoordelen task and +// flows via the ACL → Objecten → NRC → event-subscriber → projection, and the openbaar register +// shows INGESCHREVEN. +// +// Since ADR-0030 both public statuses come from the register in Objecten, not from ZGW zaak events: +// the ACL writes the record on submit (INGEDIEND) and upserts it on approval (INGESCHREVEN), so the +// INGEDIEND assertion below is itself proof of the re-sourced path. test('DigiD submit → public INGEDIEND → documenten → behandelaar goedkeurt → public INGESCHREVEN', async ({ page, context,