* fix(oauth): list opencode-console ids through OPENCODE_API_KEY when no login is stored e2e models opencode-console fell back to nothing without a stored login, even though opencodeConsole() runs fine on OPENCODE_API_KEY alone. The listing now reads the ids through the key when it is set and no login is stored; a stored login still wins, and the no-credentials message names the key as well as the login command. Fixes #1014. * fix(oauth): name OPENCODE_API_KEY only when the listing will read it `e2e models opencode-console` reads the key instead of a stored login, so a rejected stored login ended its message by telling the user to set a key the command would then ignore. The remedy now follows the credential the listing is about to use, and the tests pin both halves: the key absent from a rejected login's message, and the key never reaching another provider's listing. * fix(oauth): read OPENCODE_API_KEY over the stored login in e2e models - key wins, same as opencodeConsole(), so listing shows what runs - apiKeyEnv on the provider + credentialSource() replace 3 scattered lookups - bare `e2e models` includes a provider whose key is set - fix codex/models stub match (query string) that failed CI * fix(oauth): open the default credential store only when no API key is set * docs(changeset): qualify that listing needs the key to have /console/api/config * docs(changeset): keep the models entry to what users see --------- Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
e2e
e2e is an end-to-end testing framework for web and mobile apps. Describe a goal in natural language and an agent drives the app to reach it. Check the result with locators and assertions in the same test.
// 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');
});
An agent step that a later assertion verifies records its actions, and the next run replays them with no model calls until the app changes. Tests without agent steps need no model. Bring your own subscription, API key, or local model.
Quick start
npx e2e init
init asks for an engine, web or mobile, and a model provider, then writes a
config and an example test. The
quickstart covers the rest.
To see a finished setup in your stack, open
examples/:
Vite, Next.js, Astro, Expo, SwiftUI, Jetpack Compose, Kotlin Multiplatform,
and Flutter, each a standalone project with a passing suite.
Packages
| Package | What it does |
|---|---|
e2e |
The SDK, runner, and CLI. |
@e2e-dev/web |
Browser engine: Chromium, Firefox, and WebKit through Playwright. |
@e2e-dev/mobile |
iOS and Android engine: simulators and emulators through agent-device. |
@e2e-dev/github |
Reporter that posts results as a pull request comment. |
@e2e-dev/kernel |
Kernel hosted browsers for the web engine. |
@e2e-dev/limrun |
Limrun hosted iOS simulators and Android emulators for mobile tests. |
@e2e-dev/eas |
EAS Simulators hosted iOS simulators and Android emulators for the mobile engine. |
@e2e-dev/smol |
smol machines browsers for the web engine: by default, each attempt branches a warm Chromium microVM. |
@e2e-dev/decision |
Decision-model executors for bounded semantic actions and assertions. |
Documentation
e2e.tester.army/docs. The e2e package ships
every page, so coding agents can read them offline in node_modules/e2e/docs.
Contributing
See CONTRIBUTING.md. Questions go to Discord.
Security
Please don't open public issues for security vulnerabilities. Follow SECURITY.md and report them to security@tester.army.
Telemetry
The CLI sends anonymous usage data, such as which commands and engines run and
where runs fail, but no test content, app content, or credentials. Opt out with
npx e2e telemetry disable or E2E_TELEMETRY_DISABLED=1.
Telemetry lists every field.
Status
Note
e2e is in active development on the way to 1.0. APIs and config can still change between minor releases.
Made by TesterArmy
e2e is built by TesterArmy, the agentic testing platform that runs natural language tests on web and mobile apps, on every pull request or on a schedule.
Apache-2.0.
