aj-geddes avatar

E2e Testing Automation

This helps Claude write E2E tests that actually simulate user behavior across your full stack. You get working examples for Playwright, Cypress, and Selenium with proper patterns like Page Object Model, stable selectors using data-testid attributes, and explicit waits instead of sleeps. Use it when you need to test critical flows like checkout or signup, validate multi-step workflows, or catch regressions from UI changes. The practical advice on what not to do is honestly more valuable than most E2E guides: skip brittle selectors, don't share state between tests, and stop trying to E2E test every edge case when unit tests would work fine.

skills.sh installs
695
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill e2e-testing-automation --agent claude-code

Installs into .claude/skills of the current project.

Files

E2E Testing Automation

Table of Contents

Overview

End-to-end (E2E) testing validates complete user workflows from the UI through all backend systems, ensuring the entire application stack works together correctly from a user's perspective. E2E tests simulate real user interactions with browsers, handling authentication, navigation, form submissions, and validating results.

When to Use

  • Testing critical user journeys (signup, checkout, login)
  • Validating multi-step workflows
  • Testing across different browsers and devices
  • Regression testing for UI changes
  • Verifying frontend-backend integration
  • Testing with real user interactions (clicks, typing, scrolling)
  • Smoke testing deployments

Quick Start

Minimal working example:

// tests/e2e/checkout.spec.ts
import { test, expect, Page } from "@playwright/test";

test.describe("E-commerce Checkout Flow", () => {
  let page: Page;

  test.beforeEach(async ({ page: p }) => {
    page = p;
    await page.goto("/");
  });

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Testing & QA, DevOps & CI/CD, AI & Agent Building, Automation & Workflows
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1existential-birds avatarvitest-testingexistential-birds/beagleVitest testing framework patterns and best practices. Use when writing unit tests, integration tests, configuring vitest.config, mocking with vi.mock/vi.fn, usi471skills.sh installs
2umbraco avatarumbraco-e2e-testingumbraco/umbraco-cms-backoffice-skillsE2E testing for Umbraco backoffice extensions using Playwright and @umbraco-cms/acceptance-test-helpers380skills.sh installs
3patricio0312rev avatarunit-test-generatorpatricio0312rev/skillsGenerates comprehensive unit tests with AAA pattern (Arrange-Act-Assert), edge cases, error scenarios, and coverage analysis. Creates test files matching source374skills.sh installs
4patricio0312rev avatarcypress-playwright-setuppatricio0312rev/skillsSets up end-to-end testing with Cypress or Playwright including page objects, fixtures, and CI integration. Use when users request "E2E testing", "Cypress setup309skills.sh installs
5patricio0312rev avatare2e-test-builderpatricio0312rev/skillsBuilds end-to-end browser tests for critical user flows using Playwright or Cypress. Includes selector strategies, test data management, page objects, and visua269skills.sh installs
6giuseppe-trisciuoglio avatarunit-test-bean-validationgiuseppe-trisciuoglio/developer-kitProvides patterns for unit testing Jakarta Bean Validation (JSR-380), including @Valid, @NotNull, @Min, @Max, @Email constraints with Hibernate Validator. Gener5Kskills.sh installs