# Playwright Testing

> End-to-end testing and browser automation using Playwright.

- Skill: `jack-taylor-gorman/playwright-testing` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jack-taylor-gorman/playwright-testing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jack-taylor-gorman/playwright-testing/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: Jack-Taylor-Gorman (https://skillmd.com/u/jack-taylor-gorman)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/jack-taylor-gorman/playwright-testing

---

# Playwright Testing Protocol

When the user requests browser automation or E2E tests:

1. **Analyze** the user flow or feature to be tested.
2. **Define** test scenarios covering happy paths and edge cases.
3. **Generate** Playwright test code with:
   - Proper selectors (prefer `data-testid` attributes)
   - Assertions for visual and functional validation
   - Error handling and retry logic
4. **Execute** tests and capture screenshots/videos on failure.
5. **Report** results with clear pass/fail status and debugging artifacts.

**Best Practices:**
- Use page object models for complex flows
- Implement proper wait strategies (avoid hard waits)
- Test across multiple browsers when critical
- Capture network requests for API validation

