Auth And Isolation Defaults
Pack:
playwrightParent skill: Playwright Auth Projects And Isolation Source:playwright/playwright-auth-projects-and-isolation/references/auth-and-isolation-defaults.mdDefault auth reuse:
- create a setup project
- authenticate once per role
- store state
- consume that state in dependent projects
Default rule:
- optimize away repeated login
- do not optimize away test isolation
When to keep login inside the test:
- the login journey is the actual subject
- permissions depend on fresh interactive auth behavior
Role strategy:
- one state per materially different role
- do not conflate “can sign in” with “same effective app surface”