test(e2e): invite-consumption registration flow (REGISTRATION_POLICY=invite) #392
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#392
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Deferred from the admin e2e spec (#326, PR #377).
Gap
The admin spec (
apps/e2e/tests/admin.spec.ts) covers the admin-approval flow (register → pending → admin approves → login) and the invite mint/reveal/revoke UI, on a second app instance booted underREGISTRATION_POLICY=admin-approval. It does not cover full invite consumption — registering a second user with a minted invite code underREGISTRATION_POLICY=invite— because that policy is process-wide at boot and would need its own app instance.Work
webServerinstance + project underREGISTRATION_POLICY=invite(a third port + DB file;serve.shis already env-parameterized from #326), mirroring theadmininstance wiring inapps/e2e/playwright.config.ts.uniqueEmail()user registers with the invite token (register.invite*fields) and lands authenticated; assert the invite is then marked consumed in the admin list. Cover the rejection paths too (no token →invite_required; reused token →invite_consumed).account.admin.*/register.invite*catalog values already added toapps/e2e/fixtures/strings.ts.Note
Consider whether a third always-on instance is worth the CI cost vs. folding invite-consumption into the existing admin instance by other means; evaluate before committing to a third boot.