currents-dev logo
#191 by installsTesting & QAcurrents-dev/playwright-best-practices-skill

playwright-best-practices

Write robust Playwright tests with guidance on POM, CI/CD, flaky test fixes, and advanced scenarios

Installs
98.6K
all time
This week
2.9K
installs
Repo stars
388
GitHub
First seen
Jan 29, 2026
on skills.sh
Install
npx skills add https://github.com/currents-dev/playwright-best-practices-skill --skill playwright-best-practices
Works with Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Gemini CLI and other agents that read SKILL.md.
What it does

Comprehensive reference for all Playwright test development—from basic test creation to debugging failures and optimizing performance. Use it when writing new tests, fixing flaky behavior, implementing Page Object Model patterns, or handling complex scenarios like authentication, file uploads, accessibility testing, and multi-tab workflows. Covers E2E, component, API, visual, security, and Electron testing with best practices for CI/CD, mocking, and test annotations.

  • Debug and fix flaky tests with stability patterns; handle timing, async operations, and race conditions
  • Implement Page Object Model, test annotations (@smoke, @critical), and tag-based filtering for organized suites
  • Test complex flows: OAuth/auth, file uploads/downloads, WebSockets, geolocation, multi-tab popups, and accessibility (axe-core)
  • Configure CI/CD pipelines, performance budgets (Web Vitals, Lighthouse), global setup/teardown, and cross-browser matrix runs