e2e is a TypeScript testing framework for web and mobile apps. Tests mix natural-language agent actions with deterministic locators and assertions.
Overview
e2e targets end-to-end verification for web and mobile applications. You describe goals in natural language so an agent can drive the UI, then assert outcomes with familiar locator APIs in the same test. Model providers are pluggable, including local models and your own API keys.
Release-gating suites can run without calling a model when tests use fixed locators only. On the web, those tests can run across Chromium, Firefox, and WebKit via Playwright. Agent steps that later assertions depend on can be recorded to a cache directory so CI replays actions without model calls; strict cache mode fails if the UI drifts.
Initialization scaffolds config and sample tests for chosen web or mobile engines. An MCP server exposes a live session so coding agents can see the screen, act on it, and capture repeatable test lines. The stack ships related packages for core driving, decision-model helpers, and agent-client-protocol integrations.
Example projects cover stacks such as Vite, Next.js, Expo, Flutter, and others, each with a passing sample suite. The CLI reports optional anonymous telemetry, which can be disabled.
Key features
- Natural-language agent.act steps
- Deterministic expect assertions
- Playwright browsers on web
- Cached agent replay for CI
- Web, iOS, and Android targets
- Bring-your-own model providers
- MCP server for coding agents
- Strict cache mismatch detection
Use cases
- CI release gate test suites
- Mobile and web regression tests
- Agent-assisted UI exploration
- Hybrid agent and locator checks