Testing
2,747 installs
playwright-best-practices
by currents-dev/playwright-best-practices-skill
Use when writing Playwright tests, fixing flaky tests, debugging failures, implementing Page Object Model, configuring CI/CD, optimizing performance, mocking…
Skill content
Comprehensive reference guide for writing, debugging, and maintaining Playwright tests across all testing types and scenarios. - Covers 50+ testing patterns including E2E, component, API, GraphQL, visual regression, accessibility, security, mobile, and Electron app testing - Includes activity-based lookup tables for writing new tests, debugging failures, fixing flaky tests, and infrastructure setup - Provides decision trees for test type selection, architecture patterns (POM vs fixtures), framework-specific guidance (React, Angular, Vue, Next.js), and error scenario handling - Addresses advanced topics: multi-user collaboration, WebSocket/real-time testing, OAuth/SSO mocking, third-party service integration, performance budgeting, and console error monitoring Playwright Best Practices This skill provides comprehensive guidance for all aspects of Playwright test development, from writing new tests to debugging and maintaining existing test suites. Activity-Based Reference Guide Consult these references based on what you're doing: Writing New Tests When to use: Creating new test files, writing test cases, implementing test scenarios