joabgonzalez/ai-agents-skills/e2e-testing
Claude Code and agent skill by joabgonzalez/ai-agents-skills
- community
Checking that the SKILL.md file is still in the repository.
End-to-end testing patterns and best practices. Trigger: When writing or reviewing E2E tests for any layer.
Install
npx vskill@latest install joabgonzalez/ai-agents-skills/e2e-testingSKILL.md
The same SKILL.md was published earlier as joabgonzalez/ai-agents-skills/e2e-testing.
End-to-End Testing
Orchestrates E2E testing strategy and architecture -- delegates to playwright and stagehand skills.
When to Use
- Designing test suites for frontend or backend user flows
- Automating browser or API flows across services
- Integrating E2E tests with CI/CD pipelines
- Don't use for: unit tests, component tests in isolation, load/performance testing
Critical Patterns
Test User Flows, Not Implementation
Each test should walk through a real user scenario rather than verifying internal state.
Stable Selectors
Use selectors that survive refactors -- data-testid for complex components, ARIA roles for standard elements.
Handle Async UI
Never sleep -- rely on auto-wait or explicit conditions tied to visible DOM changes.
Test Data Management
Each test creates its own data and cleans up -- no shared mutable state.
Assert Both Presence and Absence
Each user flow has a success path and failure paths. Assert both visible outcomes and absent states — an E2E test that only checks success misses half the contract.
Playwright assertion matchers — see playwright skill for toBeVisible, toBeDisabled, not.*.
CI Pipeline Integration
Run E2E as a dedicated CI stage after unit tests; upload artifacts on failure.
Decision Tree
Example
Edge Cases
- Flaky network: Mock external APIs with
page.route()in CI - Data races: Isolate test data per worker; never share DB rows between parallel tests
- CI differences: Pin browser versions; use
playwright install --with-deps - Long suites: Shard across CI workers (
--shard=1/4) - Auth expiry: Generate short-lived tokens per run; don't cache sessions across runs
Checklist
- [ ] Each test covers a complete user flow from entry to outcome
- [ ] All selectors use
getByRole,getByTestId, orgetByLabel - [ ] No
waitForTimeoutor manual sleeps - [ ] Test data is created and torn down per test
- [ ] CI uploads trace/report artifacts on failure
- [ ] External services are mocked in CI
- [ ] Suite runs under 10 minutes (shard if needed)
Resources
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/e2e-testing/SKILL.md
Popularity
- Repository stars
- 9
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/joabgonzalez/ai-agents-skills/e2e-testing)