playwright-pro
Installation
SKILL.md
Playwright Pro
Production-grade end-to-end testing with Playwright. Generate tests from user stories, implement the Page Object pattern for maintainability, apply the correct locator strategy for resilient tests, diagnose and fix flaky tests, migrate from Cypress or Selenium, integrate with CI/CD, run visual regression tests, and perform accessibility audits. Enforces the 10 golden rules that eliminate 90% of E2E test failures.
Core Capabilities
- Resilient authoring —
getByRole/getByLabel/getByTextlocator priority, web-first auto-retrying assertions, and the 10 golden rules. - Page Object Model — centralize locators, expose user-intent methods, generate POM classes from HTML/selectors.
- Test generation — produce specs from user stories with happy-path and error-path coverage.
- Flaky-test diagnosis — trace analysis, headed/debug runs, race-condition and shared-state fixes.
- Migration — Cypress/Selenium → Playwright command mapping and auth-setup patterns.
- CI integration — GitHub Actions, sharding, conditional browser installs, trace/screenshot artifacts.
- Visual regression & accessibility —
toHaveScreenshotbaselines and Axe WCAG AA gates.