Individual skill
playwright
Playwright testing best practices for Next.js applications (formerly test-playwright). This skill should be used when writing, reviewing, or debugging E2E tests with Playwright. Triggers on tasks involving test selectors, flaky tests, authentication state, API mocking, hydration testing, parallel execution, CI configuration, or debugging test failures.
skills/.curated/playwright/SKILL.md
Source commit cf93c57cac89d6fc3e4194686000411567f5caf3
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 5, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 222
- Repository last updated
- Aug 15, 2026
- License
- MIT
Observed agent integration: codex
- testing Derived category
- writing Derived category
- security Derived category
- engineering Derived category
- testing-browser Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
AGENTS.mddoc · 8,387 bytesSKILL.mdcore · 6,672 bytesassets/templates/_template.mddoc · 1,054 bytesmetadata.jsonasset · 961 bytesreferences/_sections.mddoc · 1,802 bytesreferences/arch-cleanup-state.mddoc · 2,509 bytesreferences/arch-fixtures.mddoc · 2,590 bytesreferences/arch-page-object-model.mddoc · 2,436 bytesreferences/arch-parallel-execution.mddoc · 1,659 bytesreferences/arch-test-isolation.mddoc · 1,780 bytesreferences/arch-test-production.mddoc · 1,931 bytesreferences/auth-api-login.mddoc · 2,679 bytesreferences/auth-multiple-roles.mddoc · 3,310 bytesreferences/auth-parallel-workers.mddoc · 3,093 bytesreferences/auth-session-storage.mddoc · 3,234 bytesreferences/auth-storage-state.mddoc · 2,789 bytesreferences/debug-ci-reporters.mddoc · 1,904 bytesreferences/debug-inspector.mddoc · 2,124 bytesreferences/debug-screenshots-videos.mddoc · 2,029 bytesreferences/debug-trace-viewer.mddoc · 1,863 bytesreferences/loc-avoid-xpath.mddoc · 2,170 bytesreferences/loc-chained-locators.mddoc · 2,251 bytesreferences/loc-data-testid.mddoc · 2,311 bytesreferences/loc-label-selectors.mddoc · 2,330 bytesreferences/loc-placeholder-selector.mddoc · 2,320 bytesreferences/loc-role-selectors.mddoc · 1,989 bytesreferences/loc-text-selectors.mddoc · 2,138 bytesreferences/mock-abort-requests.mddoc · 2,681 bytesreferences/mock-api-responses.mddoc · 2,589 bytesreferences/mock-har-files.mddoc · 2,946 bytesreferences/mock-intercept-modify.mddoc · 2,663 bytesreferences/mock-network-conditions.mddoc · 2,767 bytesreferences/next-app-router-navigation.mddoc · 2,768 bytesreferences/next-baseurl-config.mddoc · 2,705 bytesreferences/next-server-actions.mddoc · 2,885 bytesreferences/next-server-components.mddoc · 2,718 bytesreferences/next-wait-hydration.mddoc · 2,758 bytesreferences/perf-browser-selection.mddoc · 2,641 bytesreferences/perf-headless-ci.mddoc · 2,124 bytesreferences/perf-retries.mddoc · 2,543 bytesreferences/perf-reuse-server.mddoc · 2,301 bytesreferences/perf-sharding.mddoc · 2,557 bytesreferences/wait-action-retries.mddoc · 2,549 bytesreferences/wait-avoid-hard-waits.mddoc · 2,671 bytesreferences/wait-custom-timeout.mddoc · 2,466 bytesreferences/wait-network-idle.mddoc · 2,801 bytesreferences/wait-soft-assertions.mddoc · 2,888 bytesreferences/wait-web-first-assertions.mddoc · 2,475 bytes
Read excerpt
# Playwright + Next.js Testing Best Practices
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.
## When to Apply
Reference these guidelines when:
- Writing new Playwright tests for Next.js apps
- Debugging flaky or failing tests
- Optimizing test execution speed
- Setting up authentication state reuse
- Configuring CI/CD pipelines for testing
- Testing Server Components and App Router features
- Reviewing test code for reliability issues