playwright-best-practices

Installation
Summary

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
SKILL.md

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

Related skills
Installs
41.3K
GitHub Stars
270
First Seen
Jan 29, 2026