skip to content
all examples

e2e with Vite

React with Vite, tested in Chromium.

A Vite + React greeting app with three locator tests and two agent tests.

vite example app with the greeting "hello, ada!"

Run

Use Node 22.22.3+, 24.8+, or 26+. From this folder:

terminal
npm install
npm run test:e2e

The runner starts the app at http://localhost:5173. It downloads Chromium on the first run if needed.

Agent tests

Set a Vercel AI Gateway key:

terminal
AI_GATEWAY_API_KEY="your-key" npm run test:e2e

Without the key, the agent tests skip. Add -- --no-cache to use fresh model calls. Results are in .e2e/report.json.

See e2e.config.ts and tests/ for the setup. For your own app, follow the Quickstart.

Last checked with e2e 0.22.0, @e2e-dev/web 0.15.4, Vite 8.3, and Node 22.

[ get started ]

your verificationlayerstarts withjust one command

npx e2e@latest init