What problem does it solve?
This Skill eliminates slow, flaky, and brittle Playwright end-to-end tests in Next.js by guiding you toward reliable selector strategies, correct waiting/asset handling, and consistent auth/mocking patterns.
Core Features & Use Cases
- Stable selectors that reduce flakiness: Prefer role-based locators and
data-testid for dynamic UI instead of XPath or fragile CSS paths.
- Deterministic synchronization: Replace hard waits with actionability-friendly interactions, web-first assertions, hydration-aware strategies, and appropriate network-based waiting.
- Faster, repeatable test setup: Reuse authentication state via storage state, speed up login via API where possible, and isolate parallel runs with the right context/fixtures.
- Reliable CI debugging: Capture screenshots/videos/trace artifacts and configure reporters so failures can be diagnosed quickly.
- Next.js-aware coverage: Validate App Router navigation patterns, Server Components, and Server Actions as end-to-end flows.
Quick Start
Use the playwright skill when your Next.js Playwright suite is flaky, slow, or failing intermittently, and ask it to recommend concrete rule changes for selectors, waiting, auth setup, and CI debugging based on the behavior you’re seeing.