mirror of
https://github.com/tester-army/e2e.git
synced 2026-12-03 04:45:58 +08:00
968b05545db8c961bf864bcb2aa3fdfd59c626f8
feat(telemetry): the run event names the deciding error, counts retries and agent actions, and files failures by kind (#371)
e2e
e2e is an end-to-end testing framework for web and mobile apps. Describe a goal in natural language and an agent interacts with the app to complete it. Use locators and assertions in the same test to check exact results. Customize anything from agent to the engine.
// 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');
});
npx e2e init
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.
Documentation
e2e.tester.army/docs: quickstart, writing tests, mobile, migrating from Playwright, Cypress, Selenium, Detox, or Maestro, and the full reference.
Packages
e2e: SDK, runner, and CLI.@e2e-dev/web: the browser engine.@e2e-dev/mobile: the iOS and Android engine.@e2e-dev/github: the pull request comment reporter.@e2e-dev/integrations: official integrations with hosted services, such as Kernel browsers.
Contributing
See CONTRIBUTING.md and SECURITY.md. Apache-2.0, by TesterArmy.
Languages
TypeScript
96.9%
Rust
1.7%
JavaScript
1%
HTML
0.2%
Swift
0.1%