Loading challenge...
Log in once then reuse storageState — a login counter and a 5/min 429 expose the cost of per-test login
Log in ONCE, persist the authenticated cookies, and replay that session across every test instead of logging in per-test
The session is held in an httpOnly cookie, so the client cannot read it directly — it must ask the server via GET /api/lab/login?action=me. The real skill here is saving that authenticated state and reusing it, not retyping credentials in every spec.
Logins so far: … — the endpoint throttles at 5 logins per minute (429), so a naive per-test login will stall the whole suite.
Demo password is Password123
Automation hints
storageState (or Cypress cy.session) and reuse it in every spec — that is the single highest-ROI auth skill#email-input / #password-input / #login-button trips the 5-per-minute 429 and throttles the whole suite — watch the message in #login-error#login-count proves how many real logins happened — with reused storage state it should stay at 0–1 no matter how many tests run#secret-area (rendered only when the server confirms the cookie), never on the disappearance of the form — the cookie is httpOnly so you cannot fake the session client-side#reset-button (DELETE) to clear the cookie and counter between runs so your suite starts from a clean, deterministic state