mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-19 10:33:29 +00:00
Retrofit a worker-scoped cookie-session fixture (journeyAuth.ts) onto journey smoke specs 01/06/07 so each worker logs in once and every test inherits the cookie via storageState, instead of ensureAuthenticated's token path (which leaves page.request cookie-less -> 401 on apiRequest/agent-report/audit endpoints). ensureJourneyReady verifies the cookie against the API directly and lands the page on a non-bootstrap route (never '/' or '/login', which force the login form even with a valid session -- #1574), so per-test auth issues zero login POSTs and the suite stays under the backend's 10-logins/min/IP limit. The two login-flow tests (health check, bootstrap-and-login) plus the logout/re-login cycle keep their own explicit login on an isolated session -- logout() destroys the current session, so it must never run against the shared worker cookie. Re-pin 01 to the current platform-first IA: primary-nav tabs ['Proxmox','Alerts','Settings'] (no single 'Infrastructure' tab; Proxmox is resource-admitted, so beforeAll enables mock mode first), settings sidebar categories ['Infrastructure','System','Security']. Re-pin 06's reporting route to /settings/support/reporting (heading 'Data & Reports') and guarantee mock mode on before the two report-generation polls. Accept 503 in 07's investigation-endpoint status set. Verified: each spec passes on its own and a combined 01+06+07 run stays green with zero login-rate-limit failures against the managed local backend. Contract-Neutral: E2E quarantine recovery |
||
|---|---|---|
| .. | ||
| integration | ||
| migration | ||
| qualification/patrol | ||