Skip to content

Curated Playwright testing guide for Next.js apps covering selectors, auth reuse, mocking, and hydration.

CCM score
47 of 100
skills.sh installs
1.2K
GitHub stars
228
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers 43 rules across 8 categories, from test architecture and selectors to waiting, auth state, mocking, and CI debugging
  • Includes per-rule reference files for topics such as loc-role-selectors, auth-storage-state, and next-wait-hydration, plus a rule template for new entries
  • Enforces priority ordering so critical items like test isolation and role-based selectors come before performance and CI tuning
  • Designed for teams writing or reviewing E2E tests in Next.js App Router projects that need fewer flaky failures

Install

$ npx -y skills add pproenca/dot-skills --skill playwright -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Test ArchitectureCRITICALarch-
2Selectors & LocatorsCRITICALloc-
3Waiting & AssertionsHIGHwait-
4Authentication & StateHIGHauth-
5Mocking & NetworkMEDIUM-HIGHmock-
6Next.js IntegrationMEDIUMnext-
7Performance & SpeedMEDIUMperf-
8Debugging & CILOW-MEDIUMdebug-

Quick Reference

1. Test Architecture (CRITICAL)

Details

Repository
github.com/pproenca/dot-skills
Categories
Testing & QA, Frontend & UI Code
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100

Similar to Playwright

More Testing & QA