# e2e

> End-to-end tests for web and mobile apps where an agent reaches the goal and assertions check it

- Category: AI Coding / AI SDLC Automation
- Language: TypeScript
- Licence: Apache-2.0
- Repository: https://github.com/tester-army/e2e
- Website: https://tester.army/e2e
- Canonical page: https://ai-tldr.dev/tools/e2e/
- Updated: 2026-10-06

## In short

e2e is an end-to-end testing framework for web and mobile apps, built in TypeScript by TesterArmy and released under Apache-2.0. It sits in the AI SDLC Automation category of the AI Coding tools and is open-source, written in TypeScript and licensed Apache-2.0. To get started: initialise a project.

## Overview

e2e is an end-to-end testing framework for web and mobile apps, built in TypeScript by TesterArmy and released under Apache-2.0. Instead of scripting every selector and wait, a test describes a goal in natural language — "upgrade the workspace to the Pro plan" — and an agent drives the app until it gets there. The same test then checks the result with ordinary locators and assertions, so agent steps and deterministic checks live side by side.

The part that keeps it cheap is the replay cache. When a later assertion verifies an agent step, e2e records the actions the agent took, and the next run replays them with no model calls until the app changes. Tests with no agent steps need no model at all. Model access is bring-your-own: a subscription such as ChatGPT or GitHub Copilot, an API key through providers like OpenRouter or Vercel AI Gateway, or a local model.

The project is split into packages: the `e2e` SDK, runner and CLI; a web engine that drives Chromium, Firefox and WebKit through Playwright; a mobile engine for iOS simulators and Android emulators; a GitHub reporter that posts results as a pull-request comment; adapters for hosted browsers and simulators; and decision-model executors for bounded actions and assertions. The README marks it as in active development on the way to 1.0, so APIs and config can still change between minor releases.

## What it does

- Natural-language goals with `agent.act` and `agent.assert`, mixed with normal locators and `expect` assertions in one test
- Verified agent steps are cached and replayed with no model calls until the app changes
- One API across web (Chromium, Firefox, WebKit via Playwright) and mobile (iOS simulators, Android emulators)
- Bring your own model: ChatGPT or Copilot subscriptions, API keys via AI SDK providers, or local models
- `e2e mcp` sessions let coding agents such as Claude Code and Cursor drive a live app session
- GitHub reporter that posts test results as a pull-request comment
- Docs ship inside the npm package, so coding agents can read them offline in `node_modules/e2e/docs`

## Getting started

Setup is one command; it asks for an engine and a model provider and writes a config plus an example test. Commands and code below come from the project's README and product page. Node.js 24.8+ (or 22.22.3+) is required, and Windows users run it inside WSL.

1. Initialise a project

   `init` asks whether you test web or mobile and which model provider to use, then writes a config and an example test.

```bash
npx e2e init
```

2. Write a test with an agent goal

   The agent reaches the goal; the locator assertion checks the outcome deterministically.

```ts
// tests/checkout.e2e.ts
import { test, expect } from 'e2e';

test('a member upgrades to Pro', async ({ app, agent, screen }) => {
  await app.open('/settings/billing');

  await agent.act('upgrade the workspace to the Pro plan');
  await agent.assert('the invoice preview shows a prorated amount');

  await expect(screen.getByRole('status')).toContainText('Pro');
});
```

3. Run the suite

   Later runs replay verified agent steps from the cache instead of calling the model.

```bash
npx e2e run
```

4. Turn off telemetry if you want

   The CLI sends anonymous usage data (commands, engines, failure points — no test or app content).

```bash
npx e2e telemetry disable
```

## When to use it

- Reach for it when brittle selector-based UI tests break on every redesign
- Reach for it to cover web and native mobile flows with one test API
- Reach for it when you want AI-driven tests in CI without paying for model calls on every run
- Reach for it to give a coding agent a live app session it can drive and check through MCP

## Version history

- 2026-10-06 e2e@0.18.0: MCP sessions become headless by default with per-session control, Node.js 22.22.3+ or 24.8.0+ is now required, TypeScript loads through a new oxc-based loader, and secrets are masked across traces, console output and MCP responses.
