e2e-test
Installation
SKILL.md
E2E Test Builder — Skill
One source of truth for adding Detox E2E tests to MetaMask Mobile. Applies to: Claude Code (
.claude/commands/e2e-test.md), Cursor, Copilot, Windsurf, and other AI agents.
Before writing or changing any E2E code: read this skill once, then open the reference(s) indicated by the decision tree for your task.
What This Skill Does
Guides you through adding a new E2E regression or smoke test end-to-end:
- Plans the test (type, location, infrastructure needed)
- Creates or reuses Page Objects and selectors
- Writes the spec using the mandatory framework patterns and the correct tag (see Golden rule 8; check
tests/tags.jsand existing specs in the feature folder) - Runs lint and type checks
- Executes the test locally via Detox
- Iterates until the test passes
Your job is to figure out whether the user needs to write a new spec, fix a failing test, or add page objects/selectors, then follow the corresponding path and open the relevant reference when that path indicates.