> ## 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

> Open source AI testing for web and mobile apps. Spend less time on tests and more time building.

e2e is an open source testing framework for web and mobile apps. A test can
use exact [locators](https://e2e.com/docs/core-concepts#locators) and
[assertions](https://e2e.com/docs/reference/expect#locator-matchers), [goals](https://e2e.com/docs/core-concepts#goals)
in natural language that an agent completes, or 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');
});
```

## A release gate in CI

A suite that gates a release must give the same result every time it runs
on a commit. e2e can run that suite with no model call:

- **Exact tests.** Your [coding agent](https://e2e.com/docs/coding-agents) writes tests with
  locators and assertions. They need no model and no key. On the web, they
  run in browsers that the [web engine](https://e2e.com/docs/web) drives through Playwright.
- **Recorded goals.** [Commit the recordings](https://e2e.com/docs/cache#commit-the-replay-cache)
  and CI [replays](https://e2e.com/docs/cache) a recorded `agent.act` with no model call. With
  [`--strict-cache`](https://e2e.com/docs/cache#fail-on-a-stale-recording), a recording that no
  longer matches the app fails the step, and no model takes over. 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).
- **Locator checks.** `expect(locator)` calls no model. With the built-in
  agent, `agent.assert`, `agent.waitFor`, and `agent.extract` call the
  model on every run.

## Why e2e

- **Less time on tests.** Write a goal instead of a script of selectors and
  waits. When the UI changes, the agent adapts, so you fix fewer tests.
- **Cheap runs.** e2e records an `agent.act` step when a later check passes.
  The next run [replays it](https://e2e.com/docs/cache) with no model calls, and hands back to
  the agent when the app changed.

## How it works

- **Targets.** Each test runs one time per target, such as Chromium or an
  iPhone simulator. The [web engine](https://e2e.com/docs/web) drives browsers through
  Playwright. The [mobile engine](https://e2e.com/docs/mobile) drives iOS simulators and Android
  emulators through agent-device. You can also
  [write your own](https://e2e.com/docs/writing-an-engine).
- **Agent steps.** `agent.act` completes a goal. `agent.assert`,
  `agent.waitFor`, and `agent.extract` judge the screen. Use your own
  [subscription](https://e2e.com/docs/subscriptions), [API key, or local model](https://e2e.com/docs/models).
- **Reports.** The runner [redacts registered secrets](https://e2e.com/docs/security) from model
  input. It records steps, failures, and artifacts in a
  [report](https://e2e.com/docs/debugging) that you or your coding agent can read.

## 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>
