Playwright Testing

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

Jack-Taylor-Gorman Updated

File contents

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

Jack-Taylor-Gorman/Agent-dev-environment/tree/main/.agent/skills/playwright-testing commit 15322ceb38

Frequently asked questions

npx skillmds@latest add jack-taylor-gorman/playwright-testing