# E2e Automation

> Write deterministic E2E/integration tests: target resilient role/test-id selectors, wait on conditions never fixed sleeps, isolate and clean up test data, and structure with page objects so a UI change updates one locator.

- Skill: `mcorbett51090/e2e-automation` (Agent Skill)
- Install (CLI): `npx get-skill add mcorbett51090/e2e-automation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mcorbett51090/e2e-automation/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: mcorbett51090 (https://skillmd.com/u/mcorbett51090)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/mcorbett51090/e2e-automation

---


# E2E Automation

**Purpose:** automate the few critical journeys, reliably.

## Selectors
Roles + `data-testid` > brittle CSS/XPath. Request testability from `frontend-engineering`.

## Waiting
**Condition-based** (await element/state/network-idle), never a fixed `sleep` (flaky if short, slow if long).

## Isolation
Each test sets up + tears down its own data; no order-dependence, no shared mutable state.

## Structure
Page objects / fixtures so a UI change touches one locator, not fifty tests.

## Flake
A flaky test is broken: fix determinism or quarantine — never normalize 're-run until green'.

