
#176 by installsTesting & QA
playwright-best-practices
Write robust Playwright tests with guidance on POM, CI/CD, flaky test fixes, and advanced scenarios
90.0K
2.8K
388
Jan 29, 2026
Install
npx skills add https://github.com/currents-dev/playwright-best-practices-skill --skill playwright-best-practicesWhat 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