playwright-pro
Installation
SKILL.md
Playwright Pro
The agent writes and maintains end-to-end tests with Playwright that stay green for the right reasons. It can 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. The 10 golden rules in the core reference prevent most flaky and brittle tests.
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.