Playwright — E2E-тесты и браузерная автоматизация

testing

Playwright expert is a Claude Code skill that writes E2E tests with Playwright, sets up test infrastructure, and debugs flaky browser tests. Reach for it when you need to automate user flows with reliable browser tests, when tests pass locally but fail randomly in CI, when you want to add visual regression coverage, or when it's time to wire end-to-end testing into a CI/CD pipeline. The skill produces TypeScript Page Object Model classes, configures playwright.config.ts, sets up fixtures and reporters, implements API mocking via route interception, and enables visual comparisons. To fix flaky tests it uses the trace viewer and screenshot analysis — replacing arbitrary waitForTimeout() calls with proper element-state waits, preferring role-based locators over brittle CSS selectors, and keeping tests independent with parallel execution. The focus is writing and debugging tests, not configuring the application under test (use react-expert or devops-engineer for that). Works with any frontend stack that supports Playwright; not the right fit for pure unit testing without a browser — consider test-master for that.