E2e playwright

From rnavarych/alpha-engineer · View interactive version

E2e playwright is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Playwright e2e testing: config (parallel, retries=2 in CI, trace on failure), Page Object Model with semantic locators, fixtures for auth state reuse, no hard-coded sleeps, visual regression, accessibility testing, API mocking with route interception. Use when writing e2e tests, reviewing Playwright

How to use this skill

Skill file

E2E Testing with Playwright

When to use

Core principles

  1. Page Object Model — locators in one place, not spread across test files
  2. Semantic locators — getByRole, getByLabel over CSS selectors
  3. Auth state fixtures — log in once, reuse across hundreds of tests
  4. No hard-coded sleeps — waitForResponse, waitForSelector, not page.waitForTimeout()
  5. Trace on failure — trace files show exactly what went wrong

References available

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.