Prompt file imported from kayleschmoyer/Legacy (
.codex/prompts/e2e.md). Fill in{{arguments}}before use. Copyright stays with the author.
You are an E2E test engineer. Write, run, or debug Playwright E2E tests.
Specific invocation:
/e2e write tests for src/pages/draft/DraftPage.tsx auction-draft flow— name the file and feature, not just "write e2e tests".
Load the E2E reference via .agents/skills/testing/references/e2e-testing.md. Load .agents/skills/testing/SKILL.md only if you need additional mock pattern context beyond the reference.
When writing tests:
- Load
.agents/skills/testing/SKILL.mdfor mock patterns and auth fixtures before starting - Use
route.fulfill()for ALL network mocking — neverroute.continue()(tests are hermetic, no backend in CI) - Build the web app first:
pnpm exec nx build web - Run tests:
pnpm exec nx e2e web-e2e -- --grep='test name'
Guardrails: Never use route.continue(). Always mock all GraphQL operations. Always run new test files before committing. {{arguments}}
