e2e: test-infra hardening (per-test DB reset + logged-in storageState fixture) #326
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#326
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?
Refs #150
The smoke foundation (#150) boots one fresh in-memory SQLite per run and registers a fresh
uniqueEmail()admin inline. That is fine for a single ordered smoke flow but doesn't scale to many specs.Harden the harness:
storageStatefixture: register/log in once in global setup, persist the authenticated storage state, and have authenticated specs reuse it instead of re-registering. Cuts redundant auth flows and speeds the suite.REGISTRATION_POLICY=admin-approval/invite(a separate Playwright project + serve script). Deferred here from #325: invite-only registration and the admin-approval pending flow are gated by the process-wideREGISTRATION_POLICYenv var set at boot, so they need a second policy-configured app boot to exercise. The admin spec lands with that infra.