playwright-auth-state
Installation
SKILL.md
Playwright Auth State
Overview
Use this skill when tests need to start in a known logged-in session or with a role-specific browser state instead of repeating the login UI in every spec. It keeps the browser state deterministic without making authentication the focus of the test.
Do not use this skill when the login form itself is the feature under test, or when the app is fully local and does not need shared browser state.
When to Use
- When a test requires an already authenticated user.
- When a suite benefits from reusing browser state across many tests.
- When you need separate roles or permissions without redoing the UI login.
When Not to Use
- When the login flow is the feature under test.
- When the app behavior is fully local and does not depend on stored session state.
- When you are diagnosing a flake that should be fixed first in
playwright-debugging.