What problem does it solve?
Playwright test suites often become flaky and hard to debug when teams rely on brittle selectors, arbitrary waits, shared mutable state, and unclear debugging practices.
Core Features & Use Cases
- Resilient E2E/API test patterns: Uses practical guidance for locator strategy, web-first assertions, and deterministic synchronization.
- Auth and session handling discipline: Covers safe approaches for authentication flows, storage-state reuse, and isolating role-based behavior.
- Debugging and quality guardrails: Encourages trace-based debugging, stable assertions, and security-oriented handling of untrusted UI/network content.
- Use Case: When onboarding a team to Playwright, use this skill to standardize how tests wait, assert, mock external services, and diagnose failures so CI results stay trustworthy.
Quick Start
Use the skill to generate a complete Playwright test plan for an authenticated dashboard flow, ensuring locator choices and assertions are web-first, timeouts are intentional, and traces are enabled for fast debugging.