e2e: a test framework where E2E tests are written in natural language
e2e is an automated E2E[1] testing framework that appeared in October and quickly drew attention. In early November it acquired the domain e2e.com and the X account @e2e. Its main feature is that tests can be written in natural language: an agent.act step gives an AI agent a goal in plain words, and the agent works with the screen. The author describes it as a mix of deterministic scripting, AI flexibility and caching that lowers execution cost.
Steps run through agent.act are cached. On the next run the cached steps are tried first, and only if they fail does the AI take over again and update the cache, which gives what the author calls self-healing[4]. There are three kinds of steps: goals (agent.act, which calls the model and can be cached), assertion[2] steps (agent.assert, agent.waitFor and agent.extract, which call the model) and screen steps that use locator[3] calls such as getByRole, which do not call the model. agent.assert is never cached, so the model judges the screen on every run.
The author warns that AI can perform a wrong action. In one example, if Ctrl+Enter fails, the agent may click the send button instead, and the test looks valid even though the item it should check has not passed. To prevent this, the author recommends locator steps for specific actions, and notes that expect and locator.waitFor cost less than agent.assert. The explore feature, in which the AI tests on its own until it reaches a goal, is mentioned but not covered. Launch Week runs from 30 November to 4 December, with a new feature each day.
Repository e2e github.com
Open source TypeScript testing framework for web and mobile apps, where E2E tests can be written in natural language with AI agent steps.
Product e2e e2e.com
Open source TypeScript testing framework for web and mobile apps, where E2E tests can be written in natural language with AI agent steps.
Sources
-
JPZenn JA
AIエージェント時代のE2E自動テストフレームワーク "e2e" について



