Skip to content

JPeetz/agent-skills / skills/qa-testing/playwright-e2e-testing

playwright-e2e-testing

Verified

Use this skill when writing, debugging, or maintaining Playwright end-to-end tests in TypeScript, JavaScript, or Python. Covers test structure and architecture (Page Object Model, fixtures, custom matchers), locator strategy (role-based, test-ID, accessible selectors), auto-waiting and retry, API/network mocking, visual regression, component testing (React, Vue, Svelte), accessibility audits (axe-core), device emulation, authentication and session management (multi-profile, OAuth, 2FA), performance testing (Web Vitals, Lighthouse), CI/CD configuration (GitHub Actions, GitLab CI, sharding), flaky test detection and auto-healing, test data/fixtures, i18n testing, Electron and browser extension testing, security testing (XSS, CSRF, CSP), and WebSocket testing. Designed for agentic platforms — Claude Code, Codex, Cursor, Gemini CLI, OpenClaw, GitHub Copilot, Windsurf, OpenCode, and all SKILL.md-compatible agents.

FileKindSize
CHANGELOG.mdmarkdown2.2 KB
LICENSEother1.0 KB
SKILL.mdskill md23.4 KB
evals/evals.jsonconfig5.3 KB
references/ci-cd-patterns.mdmarkdown2.5 KB
references/locator-strategies.mdmarkdown3.0 KB
references/testing-types-matrix.mdmarkdown3.2 KB
scripts/flake-detector.shexecutablescript2.0 KB
scripts/generate-auth-profile.tsscript3.4 KB
scripts/validate-playwright-setup.shexecutablescript2.2 KB

CHANGELOG.md

View on GitHub
# Changelog — Playwright E2E Testing Agent Skill

All notable changes to this skill package will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0] — 2026-06-16

### Added
- Initial release of Playwright E2E Testing skill
- Complete test architecture and structure guidance with Page Object Model patterns
- Locator strategy priority hierarchy (getByRole → getByLabel → getByText → getByTestId)
- Anti-pattern catalog with concrete avoidance examples
- Authentication and session management with multi-profile auth setup
- Visual regression testing with element-level and full-page screenshot comparison
- Component testing support for React, Vue, Svelte via Playwright CT
- Mobile and device emulation testing with touch/gesture support
- Debugging checklist and flaky test detection methodology
- Auto-healing test patterns for resilient test suites
- CI/CD configuration for GitHub Actions, GitLab CI, CircleCI
- Accessibility testing via axe-core integration
- Performance testing with Lighthouse and Web Vitals
- Internationalization (i18n) and localization testing
- Security testing (XSS, CSRF, CSP, auth redirects)
- WebSocket and real-time application testing
- Electron and browser extension testing
- 8 eval cases covering critical, high, and medium priority paths
- 3 near-miss negative guards (Selenium, Cypress, unit tests)
- 3 reference documents: locator strategies, testing types matrix, CI/CD patterns
- 3 utility scripts: validate-playwright-setup.sh, generate-auth-profile.ts, flake-detector.sh
- Full SEO/GEO metadata with primary keywords and semantic clusters
- Cross-platform compatibility: Claude Code, Codex, Cursor, Gemini CLI, OpenClaw, Copilot, Windsurf, OpenCode, Kiro, Antigravity, Auggie

### Source
- Adapted and materially improved from currents-dev/playwright-best-practices-skill
- Added 7 additional testing domains (performance, i18n, security, WebSocket, Electron, extensions, debugging)
- Created complete eval suite with near-miss negatives
- Added executable scripts for setup validation, auth profiles, and flake detection
- Added comprehensive reference documentation
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall