e2e
TesterArmy's open-source agentic E2E framework: natural-language agent steps, deterministic locators, replay cache, web and mobile engines.

Dhanji Bhagat
Founder, Emiote
Fully hosted platform. Automated backups and SLA.
Deterministic tests $0; agent steps bill to your own model subscription or per-token API key
Private compute. Zero seat taxes; team runs ops.
$0 local CLI + emulators/simulators; CI runner compute (Linux/macOS instances) owned by you
e2e is an open-source, self-hostable end-to-end testing framework from TesterArmy that lets developers describe test goals in natural language. An AI agent drives the app through Playwright browsers or mobile simulators, while deterministic locators verify results. Verified passing steps replay from cache with zero model calls.
Scope and currency
This is an architecture evaluation, not a production device-farm deployment diary. In October 2026 we reviewed the official tester-army/e2e repository (TypeScript pnpm monorepo, Apache 2.0, roughly 2k stars, 569 commits on main), the official documentation (quickstart, agent steps, replay cache, security model, telemetry, CI, migration guides), and the published package set (e2e, @e2e-dev/web, @e2e-dev/mobile, @e2e-dev/github, @e2e-dev/kernel, @e2e-dev/eas). We have not run e2e against a production app in CI. The project states it is in active development toward 1.0 and that APIs and config can still change between minor releases. Verify current docs before wiring it into a release pipeline. Editorial review: 2026-10-03.
What it is
e2e is an end-to-end testing framework for web and mobile apps built around one split: the agent acts, deterministic code verifies. A test describes a goal in plain language (agent.act('upgrade the workspace to the Pro plan')), then checks the outcome with exact locators and assertions (expect(screen.getByRole('status')).toContainText('Pro')). Tests with no agent steps need no model at all.
The mechanism that makes this economically viable is the replay cache. Once a later verification step confirms an agent.act step, the runner records the concrete actions. On the next run it replays those actions with no model calls. If a control or the expected end state no longer matches, the agent takes over live from the current screen and the next passing run re-records.
// 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');
});
Visual tour: the e2e landing and test shape

The e2e landing page: one install command and a test file that reads like a manual QA script with agent steps inside deterministic fixtures.
What it replaces and why it matters
End-to-end suites rot for two reasons: selectors break on every redesign, and flows written as rigid command chains cannot tolerate UI drift. e2e attacks both at once. The agent absorbs locator drift by targeting controls through the accessibility tree, and the replay cache keeps steady-state CI runs deterministic and free of model spend.
| Legacy tooling | Core limitation | How e2e changes it |
|---|---|---|
| Playwright / Cypress | Every flow step is hand-coded; dynamic or redesigned UI breaks selectors until someone rewrites them. | Agent steps resolve intent at runtime; deterministic expect locators still pin the final state. Migration guide ships in docs. |
| Selenium | Heavy driver servers, explicit waits, flaky session management. | Playwright engines plus agent-side tolerance for UI variance; no Selenium grid. Migration guide ships in docs. |
| Detox | Gray-box sync tied to the mobile build; brittle across React Native upgrades. | Mobile engine drives simulators and emulators through agent-device; existing testID values carry over. Migration guide ships in docs. |
| Maestro | Declarative YAML flows still enumerate every tap; no agent to improvise through changed screens. | Goals replace step lists; agent.assert judges screens YAML cannot describe. Migration guide ships in docs. |
| Manual QA / scripted QA services | Linear cost per release; coverage collapses under shipping pressure. | e2e explore and bug-bash modes let the agent plan its own steps and report findings before a test file exists. |
The project also ships @e2e-dev/github, a reporter that posts run results as a pull request comment from GitHub Actions, which places it directly in the review loop rather than in a separate QA dashboard.
Architecture and tech stack review
e2e is a TypeScript pnpm monorepo (pnpm@12, changesets for releases, oxlint, per-package typecheck and tests). The runtime splits into a runner core plus pluggable engines:
flowchart TD
subgraph Authoring["1. Test Authoring"]
Dev["Developer / QA<br/>(TypeScript .e2e.ts)"]
CodingAgent["Coding Agent<br/>(e2e skill + MCP)"]
end
subgraph Runner["2. e2e Runner Core"]
CLI["CLI + Config<br/>(init / run / cache)"]
AgentLoop["Agent Loop<br/>(act / assert / extract)"]
Cache["Replay Cache<br/>(.e2e/cache JSON)"]
Deterministic["Deterministic Checks<br/>(expect / screen locators)"]
end
subgraph Providers["3. Model Providers (BYO)"]
Subs["Subscriptions<br/>(ChatGPT / Copilot / SuperGrok)"]
APIKeys["API Keys<br/>(AI Gateway / OpenRouter / local)"]
end
subgraph Engines["4. Execution Engines"]
Web["@e2e-dev/web<br/>(Playwright: Chromium / Firefox / WebKit)"]
Mobile["@e2e-dev/mobile<br/>(agent-device: simulators / emulators)"]
Hosted["Hosted Options<br/>(Kernel browsers / EAS simulators)"]
end
subgraph Targets["5. App Under Test"]
WebApp["Web App<br/>(dev server URL)"]
MobileApp["Mobile App<br/>(bundle id)"]
end
Dev --> CLI
CodingAgent --> CLI
CLI --> AgentLoop
AgentLoop --> Cache
AgentLoop --> Deterministic
AgentLoop --> Subs
AgentLoop --> APIKeys
AgentLoop --> Web
AgentLoop --> Mobile
AgentLoop --> Hosted
Web --> WebApp
Mobile --> MobileApp
Hosted --> WebApp
The agent execution loop
Each agent.act call sends the instruction plus the current accessibility tree (node ids, roles, names, text, test ids, link targets, states) to the configured model. The model requests actions through closed-schema tools. The runner validates and performs them. Navigation to file:, data:, or javascript: URLs is refused, and a tool call outside the offered schema never runs.
sequenceDiagram
autonumber
actor Dev as Developer
participant Test as .e2e.ts Test
participant Runner as e2e Runner
participant Cache as Replay Cache
participant Model as Model (BYO)
participant App as App Under Test
Dev->>Test: Write goal + locator check
Test->>Runner: agent.act('upgrade to Pro')
Runner->>Cache: Lookup entry (test + target + instruction + params)
alt Cache hit, controls match
Cache-->>Runner: Recorded actions
Runner->>App: Replay taps and fills, no model call
App-->>Runner: End state matches
else Cache miss or UI drifted
Runner->>Model: Instruction + accessibility tree
Model-->>Runner: Tool calls (tap, fill, navigate)
Runner->>App: Validated actions only
App-->>Runner: Actions complete
end
Test->>Runner: expect(screen...).toContainText('Pro')
Runner->>Cache: Verified, record or refresh entry
Runner-->>Dev: Report (AI tokens + replayed / handed off / missed)
The run summary reports both sides of the ledger: model tokens and calls next to cache outcomes (replayed, handed off, missed with reasons such as target-not-found or end-mismatch). --strict-cache turns a stale recording into a REPLAY_STALE failure with exit code 2 instead of silently paying for live model calls.
Replay cache trust boundaries
Cache entries are JSON files under .e2e/cache/, named by key hash and capped at 1 MiB. They hold actions, target descriptions, typed text, and end-state checks. They hold no prompts, conversations, screenshots, observed trees, or secret values. Secret fills store only the secret name and re-authorize on replay. Entries are unsigned, so the docs direct teams to review committed entries the way they review test code. e2e init gitignores the cache directory, and CI defaults to read-only mode unless configured otherwise.
Security model
The docs publish a full security page, and the posture is explicit rather than reassuring:
- Secrets are opaque handles (
secrets.get(name)), resolved on the host. Filled values redact to<secret:name>across model input, reports, console output, and trace text. After any secret fill, screenshots and pixel tools stay disabled for the attempt because the app could render the value anywhere. - Sessions are encrypted (AES-256-GCM, per-run key held in memory, bound to run id and target, 24-hour maximum lifetime, removed at cleanup).
- Test code is not sandboxed. Tests, engines, tools, and app commands run with OS permissions. The docs state plainly that untrusted pull request code belongs in an external sandbox without secrets or write tokens.
- Telemetry defaults on. The CLI reports anonymous usage to PostHog. Nothing in test or app content travels with it. Opt out with
npx e2e telemetry disableorE2E_TELEMETRY_DISABLED=1.
Total Cost of Ownership (TCO)
e2e is Apache 2.0 with zero license cost. The real budget lines are compute, model spend, and the mobile CI tax.
| Dimension | Playwright baseline (deterministic) | e2e self-run (OSS) | Legacy device farms |
|---|---|---|---|
| Software license | $0 (Apache 2.0) | $0 (Apache 2.0) | $0 runner, closed platform |
| Local compute | $0 (your machine) | $0 (your machine + emulator/simulator) | Not applicable |
| CI compute | Linux runners from roughly $0.008/min | Same Linux baseline; iOS work needs macOS runners near $0.08/min, a 10x multiplier (same math as our Maestro note) | Offloaded to vendor grid |
| Model spend | $0 (no model) | Marginal $0 when agent steps ride an existing ChatGPT, Copilot, or SuperGrok subscription; per-token billing when using Gateway or OpenRouter keys | Not applicable |
| Steady-state CI | $0 model cost always | Near $0 model cost once the replay cache covers stable flows; changed screens pay live calls until re-recorded | Per-session fees near $199 to $399 per concurrent session per month |
| Hosted devices | Your own grid | Kernel hosted browsers and EAS hosted simulators available; current pricing lives in their docs, not verified here | Included in session price |
| Ops responsibility | You own runners and browsers | You own runners, cache hygiene (stale entries, --strict-cache policy), and model credentials in CI | Vendor owns devices |
| Annual baseline | CI minutes only | CI minutes plus whatever model billing your changed-screen rate produces | Roughly $2,388 to $4,788 per session per year |
The honest math: a team whose UI churns weekly pays model calls weekly, because drifted steps hand off to the agent and re-record. A team with a stable app and committed cache entries pays close to Playwright-level operating cost. --strict-cache in CI converts silent cost drift into a visible failure, which is the correct control for this failure mode.
The Good
- Agent plus determinism in one file. Goals handle drift, locators pin truth. Neither pure record-replay nor pure scripting gives you both.
- Replay cache attacks the real objection. Unchanged flows cost zero model calls, with per-step reasons when replay misses.
- Bring your own model. Existing ChatGPT, Copilot, or SuperGrok subscriptions work through
npx e2e login, so many teams add no new vendor line item. Local models are supported. - Web and mobile in one runner. Playwright engines for browsers,
agent-devicefor simulators and emulators, one fixture style (app,agent,screen). - Docs built for agents. Full docs ship inside the npm package for offline reading, plus a published skill and an MCP server so coding agents write and debug tests.
- Migration paths are written down. Playwright, Cypress, Selenium, Detox, and Maestro each get a dedicated migration page, so adoption can proceed one file at a time.
The Bad: what to know before adopting
- Pre-1.0 API churn is declared policy. The status page states APIs and config can change between minor releases. Pin versions, read the changelog on upgrade, and expect test-code maintenance that has nothing to do with your app.
- No sandbox around test code. The runner executes tests, engines, tools, and app commands with full OS permissions. Fork PRs running e2e in CI with secrets present are a credential-theft vector unless external sandboxing is in place.
- Cache entries are trust-bearing and unsigned. A committed recording replays actions without consulting a model. A malicious or stale entry merged without review executes against your app and your secrets flow. Review cache diffs like code.
- iOS still needs Apple hardware. Local iOS simulation requires macOS with Xcode; there is no Linux path without hosted simulators. Budget the 10x macOS runner multiplier or a hosted device option.
- Model availability is a CI dependency. Provider outages, rate limits, and key expiry surface as run failures (
MODEL_PROVIDER_FAILED), a failure class deterministic suites never have.--strict-cachehelps on cost, not on availability. - Telemetry defaults to on. The payload is anonymous and documented, but regulated environments will want the opt-out applied in base images and CI environments from day one.
When to use / When to skip
Use e2e if:
- Your E2E suite breaks on every redesign and selector maintenance consumes sprint time.
- You already pay for ChatGPT, Copilot, or SuperGrok seats, so agent steps add no new subscription.
- You ship web and mobile from one team and want a single runner and fixture style.
- Your coding agents already write app code and you want them verifying against live simulators and browsers.
- You can commit to cache hygiene: review recording diffs, run
--strict-cachein CI, re-record after intentional redesigns.
Skip e2e if:
- You only need deterministic browser coverage. Stay on Playwright with zero model dependency and zero new failure classes.
- You only test mobile with static flows and no agent involvement. Maestro gives declarative YAML with a smaller moving footprint.
- Your compliance posture forbids app content reaching external model endpoints and no approved local model exists.
- You cannot sandbox CI for fork PRs. Fix the CI trust boundary before adding an unsandboxed runner with secrets.
ReframeHub insight: verified replay is the load-bearing idea
The durable lesson in e2e is not that agents can click buttons. It is the verification-gated replay: a recording exists only because a later deterministic check vouched for the outcome, and replay dies the moment the end state stops matching. That single rule converts the agent from a recurring cost center into a one-time explorer whose findings compound as free regression coverage. Teams evaluating any agentic testing tool should ask where its equivalent rule lives. If every run calls the model regardless of what changed, the pricing model scales with commit volume instead of with product change.
Quickstart and deployment
Prerequisites: Node.js 22.12 or newer. On Windows, run inside WSL. Mobile targets also need Xcode with an iOS simulator runtime or the Android SDK with an emulator. Verify with npx agent-device doctor before writing mobile tests.
# Scaffold config, example test, skill, and MCP config (installs nothing yet)
npx e2e init
Choose the web engine (Playwright) or the mobile engine (iOS/Android), then a model source: an existing subscription (npx e2e login openai, npx e2e login github-copilot, or npx e2e login spacexai), an API key (AI_GATEWAY_API_KEY, OPENROUTER_API_KEY), a local model, or none for deterministic-only tests.
# Run the example test (downloads a browser or boots a simulator, no model calls)
npx e2e run
# Run one file, watch the browser, or bypass the cache when debugging
npx e2e run tests/agent.e2e.ts --headed
npx e2e run --no-cache
# Inspect and manage the replay cache
npx e2e cache ls
npx e2e cache stats
# Fail CI on stale recordings instead of silently paying for live calls
npx e2e run --strict-cache
For pull request feedback, add the @e2e-dev/github reporter so results post as a comment on the run. For hosted execution, the docs point at Kernel hosted browsers and EAS hosted simulators as engine providers. Full command, config, and environment references live in the docs shipped with the package (node_modules/e2e/docs) and online.
Need help evaluating agentic E2E testing or QA automation sprawl?
Reframe ($199) evaluates your test and CI stack: e2e vs Playwright vs Maestro vs device farms, auditing model spend, replay cache savings, macOS CI multipliers, and agent testing readiness. Diagnosis only.
Fixed $199 fee · 100% vendor-neutral review · 3-day delivery guarantee
