What problem does it solve?
This Skill provides a comprehensive guide to writing effective Playwright tests, covering best practices for various testing scenarios and helping developers ensure their tests are reliable and maintainable.
Core Features & Use Cases
- Best Practices Guide: Offers detailed insights and recommendations for writing E2E, component, API, visual regression, accessibility, security, i18n, Electron, and browser extension tests.
- Activity-Based References: Provides context-specific references for writing tests, debugging, and maintaining test suites based on the user's current activity.
- Quick Decision Tree: A streamlined guide to choose the right testing approach for different scenarios.
- Test Validation Loop: Outlines steps for writing and validating tests, ensuring they run successfully and consistently.
- Framework-Specific Testing: Guidance on testing Angular, Vue, React, and Next.js applications.
- Refactoring & Maintenance: Tips for improving existing tests and organizing test suites.
- Infrastructure & Configuration: Instructions for setting up projects, configuring CI/CD pipelines, and optimizing performance.
Quick Start
Activate the 'playwright-best-practices' skill and describe your testing need (e.g., "I need help writing an E2E test for a login flow").