What problem does it solve?
This Skill consolidates Playwright-specific patterns, selector strategies, waiting and assertion best practices to reduce flaky end-to-end browser tests and improve reproducibility across CI and local runs.
Core Features & Use Cases
- Selector strategy: Prioritizes accessible selectors such as role and label, and treats test IDs and CSS as fallbacks to minimize brittle selectors.
- Waiting & synchronization: Recommends explicit wait patterns and response or URL waits to avoid timing issues.
- Assertions & visual regression: Shows robust assertion patterns and guidelines for screenshot baselining and masked comparisons for UI regressions.
- Execution & diagnostics: Describes common commands, trace and artifact collection, and recommended test file layout for e2e suites.
Quick Start
Generate a Playwright test that covers the login and checkout flow using robust selectors, explicit waits, and a visual regression screenshot.