What problem does it solve?
End-to-end browser tests are often brittle, slow, and flaky; this Skill helps design reliable, maintainable Playwright test suites that reduce flakiness, speed debugging, and integrate smoothly into CI pipelines.
Core Features & Use Cases
- Test Architecture & POM: Guidance for Page Object Model patterns, component page objects, and fixture composition to keep tests maintainable.
- API Mocking & Isolation: Route interception patterns and HAR-based playback to isolate UI tests from backend variability.
- Debugging & Resilience: Instructions for traces, screenshots, retry strategies, and anti-flakiness patterns to diagnose and fix intermittent failures.
- CI Integration & Configuration: Recommended playwright.config settings, reporters, retries, and webServer setups for reproducible CI runs.
- Use Case: Implement a login Page Object, mock authentication responses, and run cross-browser tests with trace capture on failures to ensure stable releases.
Quick Start
Create a Page Object for the login flow, write a Playwright test that mocks the login API, enable trace retention on failure, and run the suite in CI.