Save once, log in everywhere. Persist Playwright storageState so scenarios start authenticated. Cuts run time and removes login flakiness for CI / CD lanes.
Step phrasings in this group
The book sidebar lists each individual step page under this group.
When I save the auth state to "tests/auth/admin.json"Save the current browser context's cookies + localStorage to a JSON file.
Given I restore the auth state from "tests/auth/admin.json"Restore cookies + localStorage from a previously saved JSON file.
Given I clear the auth stateClear cookies and localStorage / sessionStorage for the current context.