What problem does it solve? Writing browser tests that are stable, maintainable, and debuggable is hard: brittle CSS selectors break on refactors, arbitrary timeouts cause flaky failures, and teams lack consistent patterns for page objects, fixtures, and CI integration. ## Core Features & Use Cases - Test Authoring with Best Practices: Generates Playwright tests using role-based selectors, auto-waiting, and the Page Object Model pattern with TypeScript fixtures. - Flaky Test Debugging: Provides a trace-viewer-driven workflow to diagnose race conditions, network timing issues, and shared-state problems, replacing waitForTimeout with proper waits. - Infrastructure Setup: Covers playwright.config.ts configuration, API mocking via route interception, authentication state reuse, multi-browser projects, and GitHub Actions CI integration. - Use Case: When a login flow test fails intermittently in CI, invoke this Skill to capture a trace, identify the race condition, and rewrite the test with proper locator waits verified over repeated runs. ## Quick Start Write a Playwright test suite for my login page using the Page Object Model and role-based selectors, then configure retries and trace capture for CI.