What problem does it solve? End-to-end browser tests are often brittle, flaky, and hard to maintain because of poor selectors, arbitrary timeouts, and shared state between tests. This Skill provides structured guidance for writing robust Playwright tests, debugging flaky behavior, and integrating tests into CI pipelines. ## Core Features & Use Cases - Test Authoring with Best Practices: Enforces role-based selectors, auto-waiting, and the Page Object Model pattern with custom fixtures for maintainable test suites. - Flaky Test Debugging: Provides a trace-viewer-driven workflow to diagnose race conditions, animation timing, and network issues, replacing arbitrary waits with proper state assertions. - API Mocking & CI Integration: Covers route interception, HAR-based mocking, authentication state reuse, multi-browser projects, and GitHub Actions configuration. - Use Case: When a login flow test fails intermittently in CI, use this Skill to capture a trace, identify the race condition, replace the brittle CSS selector with a role-based locator, and verify stability by repeating the test ten times. ## Quick Start Ask the agent to write a Playwright test suite for your login page using the Page Object Model with role-based selectors and CI-ready configuration.