Install any skill in seconds. Free to start, no credit card required.
Get Started Free →End-to-end testing with Playwright: test generation, page objects, locator strategy, flaky- test diagnosis, visual regression, and CI integration. Use when writing E2E tests, fixing flaky tests, or migrating from Cypress/Selenium.
.claude/skills/borghei-playwright-pro/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 204% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 112% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 158% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 14% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 86% | 0% |
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.
getByRole/getByLabel/getByText locator priority, web-first auto-retrying assertions, and the 10 golden rules.toHaveScreenshot baselines and Axe WCAG AA gates.Before generating tests, confirm these inputs. If any is unknown or vague, ASK — do not assume:
data-testid (sets locator strategy and POM resilience)Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.
This skill uses compound sub-skill architecture. Each sub-skill in skills/ handles a specific workflow:
| Sub-Skill | File | Purpose | |-----------|------|---------| | Init | skills/init.md | Bootstrap Playwright in a project -- install, configure, create first test | | Generate | skills/generate.md | Generate test files from user stories or page descriptions | | Fix | skills/fix.md | Diagnose and fix failing or flaky tests using trace analysis | | Migrate | skills/migrate.md | Migrate from Cypress or Selenium to Playwright | | Review | skills/review.md | Audit test quality, coverage gaps, and flaky test indicators | | Report | skills/report.md | Generate execution reports from Playwright JSON output | | Coverage | skills/coverage.md | Map tests to user stories, identify coverage gaps | | BrowserStack | skills/browserstack.md | BrowserStack cloud integration for cross-browser testing | | TestRail | skills/testrail.md | TestRail integration for test case management |
Sub-skill flow: Init → Generate → Review → Fix (if needed); Coverage → Generate (fill gaps); Report → BrowserStack / TestRail.
| Tool | Purpose | Command | |------|---------|---------| | test_generator.py | Generate Playwright test code from user story descriptions | python scripts/test_generator.py --story "..." --page LoginPage --output tests/ | | flaky_detector.py | Analyze multiple CI runs to detect flaky test patterns | python scripts/flaky_detector.py --results-dir results/ --runs 10 --threshold 0.05 | | coverage_mapper.py | Map tests to user flows and identify coverage gaps | python scripts/coverage_mapper.py --tests tests/ --flows flows.json --gaps-only | | page_object_generator.py | Generate Page Object classes from HTML or selector lists | python scripts/page_object_generator.py --html page.html --name LoginPage --route /login | | test_analyzer.py | Scan test files for anti-patterns and quality issues | python scripts/test_analyzer.py tests/ --severity high | | test_report_parser.py | Parse Playwright JSON reports into summaries | python scripts/test_report_parser.py report.json --top-slow 10 |
Load the reference that matches the task — keep this file lean and pull detail on demand:
playwright.config.ts, Page Object Model classes, test generation from user stories, and shared-auth setup. Read when authoring tests or configuring a project.This skill covers:
This skill does NOT cover:
engineering/testing-strategy for test pyramid guidance)api-test-suite-builder for API-focused testing)| Skill | Integration | Data Flow | |-------|-------------|-----------| | ci-cd-pipeline-builder | E2E tests run as a pipeline stage after build and unit tests | Pipeline config triggers playwright test; artifacts (traces, screenshots) upload on failure | | api-test-suite-builder | API tests validate backend contracts; Playwright tests validate UI flows end-to-end | API test results confirm endpoint stability before E2E suite runs against the same environment | | pr-review-expert | PR reviews check for test coverage on UI changes and flag missing E2E specs | Review checklist references Playwright Pro golden rules; flags waitForTimeout or raw CSS selectors | | performance-profiler | Performance budgets complement E2E tests to catch regressions | Profiler identifies slow pages; Playwright tests add networkidle waits or performance assertions for flagged routes | | observability-designer | Test failures feed into observability dashboards for flake tracking | CI test results export JSON reports; observability pipelines ingest pass/fail/flake metrics over time | | release-manager | E2E suite is a release gate; green suite required before deployment proceeds | Release workflow calls Playwright CI job; blocks release tag creation on any test failure |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 13,670 | 17,887 | +31% | 1 | 1 | 0% | 2,776 | 5,627 | +103% | 0 | 0 | — |
case-02 | fail→fail | 22,932 | 22,849 | -0% | 1 | 1 | 0% | 3,599 | 5,657 | +57% | 0 | 0 | — |
case-03 | fail→fail | 20,030 | 22,911 | +14% | 1 | 1 | 0% | 3,538 | 6,349 | +79% | 0 | 0 | — |
case-04 | fail→pass | 5,871 | 8,443 | +44% | 1 | 1 | 0% | 1,102 | 3,353 | +204% | 0 | 0 | — |
case-05 | pass→pass | 5,868 | 2,629 | -55% | 1 | 1 | 0% | 940 | 2,177 | +132% | 0 | 0 | — |
case-06 | fail→pass | 5,998 | 2,299 | -62% | 1 | 1 | 0% | 1,015 | 2,156 | +112% | 0 | 0 | — |
case-07 | fail→pass | 5,372 | 2,179 | -59% | 1 | 1 | 0% | 840 | 2,166 | +158% | 0 | 0 | — |
case-17 | fail→pass | 11,980 | 3,405 | -72% | 1 | 1 | 0% | 1,982 | 2,251 | +14% | 0 | 0 | — |
case-08 | fail→pass | 6,762 | 2,125 | -69% | 1 | 1 | 0% | 1,145 | 2,125 | +86% | 0 | 0 | — |
case-09 | fail→pass | 6,757 | 2,574 | -62% | 1 | 1 | 0% | 1,044 | 2,189 | +110% | 0 | 0 | — |
case-10 | pass→pass | 5,356 | 2,102 | -61% | 1 | 1 | 0% | 860 | 2,089 | +143% | 0 | 0 | — |
case-11 | pass→pass | 4,507 | 4,877 | +8% | 1 | 1 | 0% | 682 | 2,537 | +272% | 0 | 0 | — |
case-12 | pass→pass | 7,374 | 5,901 | -20% | 1 | 1 | 0% | 1,194 | 2,682 | +125% | 0 | 0 | — |
case-13 | fail→pass | 7,869 | 4,760 | -40% | 1 | 1 | 0% | 1,281 | 2,578 | +101% | 0 | 0 | — |
case-14 | fail→pass | 6,778 | 2,213 | -67% | 1 | 1 | 0% | 1,025 | 2,206 | +115% | 0 | 0 | — |
case-15 | fail→pass | 6,504 | 2,619 | -60% | 1 | 1 | 0% | 963 | 2,153 | +124% | 0 | 0 | — |
case-16 | fail→pass | 10,455 | 3,811 | -64% | 1 | 1 | 0% | 1,762 | 2,377 | +35% | 0 | 0 | — |
case-18 | fail→pass | 10,778 | 3,549 | -67% | 1 | 1 | 0% | 1,702 | 2,400 | +41% | 0 | 0 | — |
case-19 | pass→pass | 18,227 | 20,362 | +12% | 1 | 1 | 0% | 2,710 | 5,286 | +95% | 0 | 0 | — |
case-20 | fail→pass | 14,931 | 5,590 | -63% | 1 | 1 | 0% | 2,591 | 2,677 | +3% | 0 | 0 | — |
case-21 | fail→pass | 18,656 | 8,803 | -53% | 1 | 1 | 0% | 2,693 | 3,266 | +21% | 0 | 0 | — |
case-22 | fail→pass | 13,736 | 5,209 | -62% | 1 | 1 | 0% | 2,123 | 2,467 | +16% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +64 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.