> ## Documentation Index
> Fetch the complete documentation index at: https://e2e.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> e2e is an open source AI testing framework for web, iOS, and Android apps, where you write end-to-end tests with exact locators, natural-language agent steps, or both.

e2e is an open source testing framework for web and mobile apps. Write
exact [locators](https://e2e.com/docs/core-concepts#locators) and
[assertions](https://e2e.com/docs/reference/expect#locator-matchers), natural-language
[goals](https://e2e.com/docs/core-concepts#goals) that an AI agent executes, or mix both in the
same test.

<VideoCard
  id="NEawZb6Hssw"
  title="Watch e2e explained in 2 minutes"
  subtitle="Chain agent goals with locator checks, run one test on web, iOS, and Android, and set up a project in a minute."
/>

```ts title="tests/checkout.e2e.ts"

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');
});
```

## Why e2e

- **Less test maintenance.** Describe the user goal instead of fragile
  chains of selectors and waits. When the UI shifts, the agent adapts so you
  fix fewer tests.
- **Fast, cheap reruns.** After an `agent.act` step passes and a later check
  confirms the result, e2e [caches the recorded actions](https://e2e.com/docs/cache). Future runs
  replay them with zero model calls and fall back to the agent only when the
  app changes.

## How it works

- **Targets.** Write a test once and run it across Chromium, Firefox, WebKit,
  iOS simulators, or Android emulators. The [web engine](https://e2e.com/docs/web) drives
  browsers with Playwright, the [mobile engine](https://e2e.com/docs/mobile) drives devices with
  agent-device, and you can [plug in your own engine](https://e2e.com/docs/writing-an-engine).
- **Agent steps.** `agent.act` completes a goal; `agent.assert`,
  `agent.waitFor`, and `agent.extract` inspect the screen. Bring your own
  [subscription](https://e2e.com/docs/subscriptions), [API key, or local model](https://e2e.com/docs/models).
- **Reports and security.** e2e [redacts registered secrets](https://e2e.com/docs/security) from
  model input and writes steps, screenshots, and traces to a
  [report](https://e2e.com/docs/debugging) for you or your coding agent to read.

## A release gate in CI

Release gates need deterministic results on every commit. You can run e2e in
CI without calling a model:

- **Locator-only tests.** Write tests with locators and `expect()` (or let
  your [coding agent](https://e2e.com/docs/coding-agents) write them). They don't need a model
  or API key.
- **Committed recordings.** [Commit your replay cache](https://e2e.com/docs/cache#commit-the-replay-cache)
  so CI replays recorded `agent.act` steps with zero model calls. Pass
  [`--strict-cache`](https://e2e.com/docs/cache#fail-on-a-stale-recording) to fail on stale
  recordings instead of calling a model. A step that was never recorded, or
  whose recording has a gap, still
  [runs live](https://e2e.com/docs/cache#fail-on-a-stale-recording).
- **Deterministic checks.** `expect(locator)` runs locally with no model.
  With the built-in agent, `agent.assert`, `agent.waitFor`, and
  `agent.extract` always call the model.

## Get started

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    One prompt for your coding agent, or set up by hand.
  </Card>
  <Card title="Example projects" icon="folder-open" href="/example-projects">
    Run a standalone web or mobile app that already has e2e tests.
  </Card>
  <Card title="Core concepts" icon="pen-to-square" href="/core-concepts">
    Goals, assertions, and locators.
  </Card>
  <Card title="Coding agents" icon="robot" href="/coding-agents">
    Let your coding agent write, run, and debug tests.
  </Card>
</CardGroup>
