Test e2e

From berkcangumusisik/claude-code-practices · View interactive version

Test e2e is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Generates end-to-end tests for a user flow using Playwright or Cypress

How to use this skill

Skill file

Generate E2E Tests

Flow to test: $ARGUMENTS

  1. Detect the E2E framework:
cat package.json | grep -E "playwright|cypress|puppeteer"
ls e2e/ tests/ cypress/ playwright/ 2>/dev/null | head -20
  1. Read 2-3 existing E2E test files to understand the project's patterns, selectors, and helpers.
  1. Generate the E2E test covering:
  1. Use data-testid selectors by preference, then aria labels, then text - avoid CSS class selectors.
  1. Place the test in the correct directory matching project conventions.
  1. Note any test data or environment variables required.
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.