E2e

From stefvw93/weft · View interactive version

E2e is an AI agent skill from the GitHub repository stefvw93/weft. Step 6 of the Weft TDD workflow. Use after /implement is green: writes *.browser.test.ts real-browser tests (Vitest browser mode + Playwright via vp run test:browser). Mandatory for every touched examples/* app; for package features only when behavior is browser-observable, otherwise records an expl

How to use this skill

Skill file

/e2e: Real-browser tests (TDD step 6)

Assert the feature's behavior in a real Chromium browser, or record an explicit, reasoned skip.

When to run

Scope rule

```markdown

e2e: not applicable, <one-line reason>

```

Procedure

  1. Decide scope per the rule above; record the skip in specs.md if not applicable, report it, and hand off.
  1. Write the test file: *.browser.test.ts (or .tsx), co-located. Conventions (see e2e/specs.md for full detail):
  1. Known pitfalls (each has bitten before):
  1. Run: vp run test:browser (packs first, then runs all *.browser.test.* in headless Chromium). Must be green.
  1. Hand off. Next step is /review-step.

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.