Provides Playwright E2E testing best practices for Next.js apps: selectors, flaky test debugging, auth state, API mocking, parallel execution, and CI config.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pproenca-dot-skills-1:playwrightThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Comprehensive testing optimization guide for Playwright with Next.js applications. Contains 43 rules across 8 categories, prioritized by impact to guide reliable, fast, and maintainable E2E tests.
Comprehensive testing optimization guide for Playwright with Next.js applications. Contains 43 rules across 8 categories, prioritized by impact to guide reliable, fast, and maintainable E2E tests.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Test Architecture | CRITICAL | arch- |
| 2 | Selectors & Locators | CRITICAL | loc- |
| 3 | Waiting & Assertions | HIGH | wait- |
| 4 | Authentication & State | HIGH | auth- |
| 5 | Mocking & Network | MEDIUM-HIGH | mock- |
| 6 | Next.js Integration | MEDIUM | next- |
| 7 | Performance & Speed | MEDIUM | perf- |
| 8 | Debugging & CI | LOW-MEDIUM | debug- |
arch-test-isolation - Use fresh browser context for each testarch-parallel-execution - Enable parallel test executionarch-page-object-model - Use Page Object Model for complex pagesarch-fixtures - Use fixtures for shared setuparch-test-production - Test against production buildsarch-cleanup-state - Clean up test state after each testloc-role-selectors - Use role-based selectors over CSSloc-data-testid - Use data-testid for dynamic elementsloc-label-selectors - Use getByLabel for form inputsloc-text-selectors - Use getByText for static contentloc-avoid-xpath - Avoid XPath selectorsloc-chained-locators - Chain locators for specificityloc-placeholder-selector - Use getByPlaceholder sparinglywait-web-first-assertions - Use web-first assertionswait-avoid-hard-waits - Avoid hard waitswait-network-idle - Use network idle for complex pageswait-action-retries - Let actions auto-wait before interactingwait-soft-assertions - Use soft assertions for non-critical checkswait-custom-timeout - Configure timeouts appropriatelyauth-storage-state - Reuse authentication with storage stateauth-multiple-roles - Use separate storage states for different rolesauth-session-storage - Handle session storage for authauth-api-login - Use API login for faster auth setupauth-parallel-workers - Use worker-scoped auth for parallel testsmock-api-responses - Mock API responses for deterministic testsmock-intercept-modify - Intercept and modify real responsesmock-har-files - Use HAR files for complex mock scenariosmock-abort-requests - Abort unnecessary requestsmock-network-conditions - Simulate network conditionsnext-wait-hydration - Wait for hydration before interactingnext-server-components - Test server components correctlynext-app-router-navigation - Test App Router navigation patternsnext-server-actions - Test server actions end-to-endnext-baseurl-config - Configure baseURL for clean navigationperf-sharding - Use sharding for large test suitesperf-headless-ci - Use headless mode in CIperf-browser-selection - Select browsers strategicallyperf-reuse-server - Reuse development server when possibleperf-retries - Configure retries for flaky test recoverydebug-trace-viewer - Use trace viewer for failed testsdebug-screenshots-videos - Capture screenshots and videos on failuredebug-inspector - Use Playwright Inspector for interactive debuggingdebug-ci-reporters - Configure reporters for CI integrationRead individual reference files for detailed explanations and code examples:
| File | Description |
|---|---|
| AGENTS.md | Complete compiled guide with all rules |
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |
npx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin pproenca-dot-skills-1Guides Playwright end-to-end testing: selectors, assertions, fixtures, auth, parallelism, CI, visual regression, and flake hunting. Activate with playwright/e2e/playwright config topics.
Provides patterns and conventions for reliable end-to-end browser testing with Playwright, covering locators, auth, forms, assertions, and CI/CD.
Writes, reviews, and debugs Playwright end-to-end tests using user-centric patterns, page objects, resilient selectors, and isolated tests.