feat(behandel): behandel-portal — werkbak + beoordeling (closes #13) #87

Merged
not merged 8 commits from feat/13-behandel-portal into main 2026-07-16 08:31:58 +00:00
Showing only changes of commit 52ba2fc242 - Show all commits

View File

@@ -66,7 +66,16 @@ test('DigiD submit → public INGEDIEND → behandelaar goedkeurt → public ING
}, { timeout: 30_000, intervals: [1_000, 2_000, 3_000, 5_000] })
.toBeGreaterThan(0);
// Click and wait for the decide POST to finish (204) BEFORE leaving the page. `click()` only
// dispatches the request; navigating away immediately cancels it in flight (nginx logs a 499) and
// the decision never reaches the domain — so the registration would stay INGEDIEND.
const decided = page.waitForResponse(
(r) =>
r.url().includes(`/behandel/registrations/${reference}/decide`) &&
r.request().method() === 'POST',
);
await goedkeuren.click();
expect((await decided).status()).toBe(204);
// The approval flows back to the projection; back on the openbaar register *our* row (matched by
// its reference) now shows INGESCHREVEN.