webapp-testing
Installation
SKILL.md
Web Application Testing (Playwright)
Toolkit for interacting with and testing local web applications (especially Next.js frontends) using Playwright.
Purpose
To verify frontend functionality, debug UI behavior interactively, and capture state through screenshots and DOM inspection.
When to Include
- When you need to verify if a UI component renders correctly.
- When generating E2E tests for the frontend.
- When you must log in, click buttons, or perform user flows using browser automation.
Core Rules & Anti-Patterns
1. The Wait for Network Idle Rule (CRITICAL)
For Next.js and other dynamic Single Page Applications (SPAs), the HTML sent by the server is often incomplete until JavaScript executes.
❌ Don't inspect the DOM immediately after page.goto().
✅ Do wait for networkidle state before inspecting or interacting.