Commit Graph
85 Commits
Author SHA1 Message Date
Donny/강동윤andClaude Opus 5.5 40cb356a1e fix(web,mobile): load the main entry without e2e installed (#1828)
`@e2e-dev/web` and `@e2e-dev/mobile` declare `e2e` an optional peer, but
their main entry imported it statically to build `test`. A program on
`@e2e-dev/core` alone that wrote `import { web } from '@e2e-dev/web'`
failed with ERR_MODULE_NOT_FOUND before any of its code ran.

The main entry now requires `e2e` only when it resolves. Without it, the
engine factory works and `test`, `describe`, and the hooks throw
RUNNER_NOT_INSTALLED when called. It uses createRequire, not a top-level
await, so a CommonJS file can still require() the entry.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:50:17 +00:00
Michał Pierzchała a6d1255394 fix(ci): repair agent-device nightly setup and summary (#1832) 2026-11-16 09:37:55 +00:00
dbe3dc54a9 feat(core): add launch, SessionState, and createAgent to @e2e-dev/core (#1734)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
2026-11-16 09:38:07 +01:00
0a5ee16387 refactor: move e2e's core into @e2e-dev/core, and engines peer on it (#1737)
* refactor: move e2e's core into @e2e-dev/core, and engines peer on it

The engine contract, locators, agent, replay cache, secrets, and the
session half of a worker move from packages/e2e to packages/core, the new
@e2e-dev/core package, at the same paths. e2e depends on it at its exact
version (a changesets fixed group) and reaches its modules through
@e2e-dev/core/lib/*, which is not public API; e2e/engine and e2e/agent
re-export it. @e2e-dev/web and @e2e-dev/mobile peer on @e2e-dev/core and
import the contract from @e2e-dev/core/engine. Install smoke checks that one
copy of @e2e-dev/core is installed.

Most of this diff is git mv and import specifiers rewritten to
@e2e-dev/core/lib/<path>; no behavior changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: build and pack @e2e-dev/core where e2e is built or packed alone

The Bun job built e2e before the @e2e-dev/core it compiles against, and the
examples nightly installs e2e from a tarball whose exact @e2e-dev/core is
not on npm; it now packs @e2e-dev/core and overrides it in each example.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(engines): name @e2e-dev/core/engine as the contract's source

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(e2e): list @e2e-dev/core beside an engine in init and upgrade

Engines peer on @e2e-dev/core. Yarn installs no peer the project does
not list, and under Plug'n'Play the engine then fails to load.

- init adds @e2e-dev/core with any engine
- upgrade adds a required @e2e-dev peer the project lacks, and keeps a
  package e2e depends on at the version e2e names

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
2026-11-15 18:31:58 +00:00
Dery Ferdika f41edce99d refactor(scripts): share the docs page walker across the checks (#1796) 2026-11-14 18:37:51 +01:00
Krzysztof Moch cf1d0c9b08 fix(plugins): show the plugin as lowercase e2e in Claude (#1757) 2026-11-13 16:23:52 +00:00
Krzysztof Moch fe0cd95d7e fix(plugins): set the directory listing's homepage, docs, privacy, and support links (#1756) 2026-11-13 16:14:24 +00:00
Krzysztof Moch e4226c794b fix(plugins): pin the MCP server launcher to the runner version (#1755) 2026-11-13 15:59:32 +00:00
Brendan Irvine-BroqueandOskar Kwaśniewski 352b774b33 feat(browser-run): add Cloudflare hosted browsers (#1634)
Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
2026-11-13 08:46:31 +00:00
Krzysztof Moch 258ef9be7a feat(plugins): register the e2e MCP server in the plugin (#1717) 2026-11-12 17:23:48 +00:00
Oskar Kwaśniewski 6e5fa0d660 ci: nightly run against agent-device nightly (#1706) 2026-11-12 08:42:30 +00:00
Mikolaj AdamowiczandOskar Kwaśniewski 984f139d7c feat(mobile): let custom tools call agent-device through deviceSession (#1584)
* feat(mobile): export agent-device from @e2e-dev/mobile/agent-device

Custom tools that extend the mobile engine with agent-device calls have
to import `agent-device` directly. pnpm does not resolve that import
from a transitive dependency, so the project installs agent-device
itself and has to keep it at the exact version @e2e-dev/mobile pins,
because two versions do not share one daemon.

The new subpath re-exports what a tool commonly needs from the engine's
copy: `createAgentDeviceClient`, the error helpers (`AppError`,
`isAgentDeviceError`, `normalizeAgentDeviceError`), `centerOfRect`, and
the types for the client, snapshots, screenshots, targets, gestures,
text entry, alerts, and waits. `ensureDaemon` and `startAgentDevice`
stay out because the engine owns the daemon.

The install smoke imports the subpath from a fresh pnpm project with no
agent-device dependency and checks there is one agent-device install.
The e2e skill tells agents to use this import instead of adding
agent-device.

* docs(mobile): mark @e2e-dev/mobile/agent-device unstable, point tests to unstable_raw

A client built with `createAgentDeviceClient` does not get the engine's
daemon, lease, or per-worker session name, so the docs no longer say it
drives the engine's session. Tests use `device.unstable_raw.client`.
The subpath is agent-device's API at the pinned version, so it is
labeled unstable like `unstable_raw`.

* chore(mobile): shorten the agent-device subpath comments

* feat(mobile): give custom tools the running device session

A custom tool had no way to reach the engine's agent-device client, and
a client built from `createAgentDeviceClient` misses the engine's
daemon, lease, and per-worker session. `deviceSession(...engines)` on
`@e2e-dev/mobile/tools` returns the running attempt's `DeviceSession`,
the object a test reads from `device.unstable_raw`, using the lookup
`mobileTools` already had.

From review: `@e2e-dev/mobile/agent-device` drops the client factory and
keeps the types and error helpers. The skill line is scoped to these
imports, and the stale Limrun peer line is fixed. The export-map test
checks every entry's paths, the install smoke stops reading the `.pnpm`
layout, and the docs keep one full description in the reference.

* fix(mobile): spread the device selection in the deviceSession example

The docs example called `settings.update` without the session's
`selection`, unlike every engine call, so it could miss the worker's
device before an app is open. Also restores `createDeviceFixture`'s
JSDoc and tests the several-attempts refusal of `deviceSession`.

* refactor(mobile): keep raw sessions behind a neutral unstable API

* fix(mobile): type the unstable raw session client

---------

Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
2026-11-11 17:52:58 +00:00
Kacper Kapuściak c7084b646b ci(site): redeploy e2e.com when e2e is released, not on docs pushes (#1693) 2026-11-11 09:33:40 +00:00
Oskar Kwaśniewski 3735887569 chore: move from tester-army to e2e-inc GitHub org (#1672) 2026-11-10 20:11:53 +01:00
Tomas Varga ae5d121514 feat(e2b): run Android and web targets in E2B sandboxes (#1598) 2026-11-09 19:08:27 +01:00
Kacper Kapuściak 6b2b2519cf docs(examples): add the GitLab CI/CD example (#1646)
* docs(examples): add the GitLab CI/CD example

Let the registry list examples on gitlab.com: the schema accepts GitLab
projects and folders, official examples may live in the e2e_inc group, and
the checks pin, compare, and fetch GitLab URLs. A partner example stays on
GitHub, under its author.github.

* docs(examples): say partner examples live on GitHub in the contributing guide
2026-11-09 12:14:56 +00:00
Oskar Kwaśniewski 5f46d20aa9 docs(migrate): add an Appium migration guide (#1597) 2026-11-07 12:43:39 +01:00
Kacper Kapuściak f185ca8ba2 docs: retire sidebar page icons (#1582)
* docs: retire sidebar page icons

The docs sidebar no longer shows icons. Drop icon: from every page's frontmatter, delete the grey silhouettes in docs/images/icons/, and make check-docs-logos fail on any frontmatter icon instead of requiring one on vendor pages. Card logos stay required. The authoring-docs skill trades its Page icons section for a short Vendor logos one.

* docs: require a migrate overview card for each migration guide

* docs: match only top-level icon keys in check-docs-logos
2026-11-05 18:23:59 +00:00
Oskar Kwaśniewski 0c0469605a chore: replace e2e.tester.army with e2e.com (#1572) 2026-11-05 09:23:45 +01:00
Kacper Kapuściak 7259c05b0f fix(docs): close the subscriptions Limits accordion and check every page compiles as MDX (#1489) 2026-10-30 20:43:16 +00:00
Krzysztof Moch d52e9b0199 docs(migrate): show the TesterArmy logo in the sidebar and add its card (#1468)
* docs(migrate): show the TesterArmy logo in the sidebar and add its card

The sidebar icon was the dithered black mark, which the site's grey
silhouette filter smeared into a blob at 16 px. Use TesterArmy's favicon
instead: grey shades in the sidebar, brand colors on the new card in the
migrate overview.

* docs(skills): exempt the TesterArmy icon in the authoring-docs checklist
2026-10-30 14:14:44 +00:00
Manuel LopezandOskar Kwaśniewski 64432f1089 feat(browserstack): add @e2e-dev/browserstack device provider (#1307)
Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
2026-10-30 13:58:48 +01:00
Kacper Kapuściak b3ae3a43cf feat(examples): add 26 community examples, pinned to a commit, with an optional readme (#1445)
* feat(examples): add 26 community examples, pinned to a commit, with an optional readme

* docs(examples): allow an example without a README in what we look for
2026-10-29 11:35:07 +00:00
Kacper Kapuściak d30114a1ca docs: move the page objects page to /page-object-model (#1444) 2026-10-29 11:15:27 +00:00
Kacper Kapuściak 38b802d61c docs(examples): supersede with-limrun with Limrun's official example (#1442) 2026-10-29 08:26:17 +00:00
Kacper Kapuściak 2a6ab0b23d feat(examples): link each partner's landing page from its example (#1428) 2026-10-28 09:45:02 +00:00
Kacper Kapuściak 3156c3e419 feat(examples): mark smol machines as a partner example (#1423) 2026-10-28 08:27:02 +00:00
Oskar Kwaśniewski 4d53666fe3 ci: label PRs by size without counting tests (#1419) 2026-10-27 19:26:27 -07:00
Dery Ferdika 5fd72ba6dd test(scripts): cover the release package helpers and the pr-policy GitHub layer (#1417) 2026-10-27 16:35:38 -07:00
Kacper Kapuściak 8765aa3926 feat(examples): list official and community examples in examples/examples.json (#1412) 2026-10-27 08:58:15 -07:00
Kacper Kapuściak 1a7a331b41 chore(docs): remove unused Mintlify tooling (#1408) 2026-10-27 08:57:58 +00:00
Kacper Kapuściak ec941749aa ci(examples): keep the agent-device daemon state out of the cache and give an infrastructure failure a second pass (#1391) 2026-10-26 09:45:28 +00:00
2bc00e91ce feat(runner): expose explore() through e2e/runner (#1256)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
2026-10-25 16:41:16 -05:00
Kacper Kapuściak bc763b188e docs: add a Writing fixtures guide (#1341)
* docs: add a Writing fixtures guide

* docs: list Writing fixtures after Project tools and fold its long example

* docs: show fixtures creating test data and leave sign-in to saved sessions

* docs: create fixture data with agent.act instead of a test API

* docs: cut the Writing fixtures page to the essentials

* docs: import expect from e2e in the fixtures example
2026-10-23 17:33:06 +00:00
Oskar Kwaśniewski da13624d31 feat(runner): run only the tests a pull request can affect (#1206) 2026-10-23 12:29:15 -05:00
Kacper Kapuściak 9a519c13dd docs: add a page objects page (#1340)
* docs: add a page objects page

* docs: reword the page objects intro

* docs: keep the page objects intro generic
2026-10-23 16:58:40 +00:00
Oskar Kwaśniewski e62486d668 docs(quickstart): list the common config options (#1332) 2026-10-22 12:20:53 -04:00
Oskar Kwaśniewski c332aa3fda ci: check community PRs against the contributing policy (#1329) 2026-10-22 11:52:16 -04:00
Oskar Kwaśniewski 24fc856de6 docs(testmu): merge the device and browser pages into one (#1330) 2026-10-22 08:46:30 -04:00
Krzysztof Moch 72abdddd96 feat: add the e2e plugin for Cursor (#1321) 2026-10-21 14:17:48 -04:00
92f8cb07bf feat(testmu): hosted Chrome and Edge for the web engine with testmuBrowsers() (#1200)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: SahilSawLT <sahilsaw@lambdatest.com>
Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
2026-10-21 08:57:19 -04:00
Kacper Kapuściak 1071933813 feat(config): discover e2e.config.js and document a JavaScript setup (#1280) 2026-10-20 08:53:36 -04:00
Kacper Kapuściak 5a083d2065 ci(examples): run every example nightly against main and report to Slack (#1254)
* ci(examples): run every example nightly against main and report to Slack

A scheduled workflow (23:00 Europe/Warsaw) packs e2e, @e2e-dev/web, and @e2e-dev/mobile from main, installs them into each example in place of the npm releases, builds the native apps, and runs the deterministic and agent tests on Chromium, an Android emulator, and an iOS simulator. One summary job posts the whole run to Slack through the SLACK_EXAMPLES_NIGHTLY_WEBHOOK_URL webhook. with-limrun is left out; nothing here gates a pull request.

* fix(examples): never report an empty or unlisted nightly run as green

* ci(examples): never run the nightly examples on a fork
2026-10-19 13:53:24 +00:00
Dery Ferdika 9f05333029 fix(lint): report parsed JSON behind a satisfies expression (#1250) 2026-10-19 15:29:44 +02:00
ea7cdb5185 fix(bench): compare run exit statuses alongside test outcomes (#1070)
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
2026-10-16 15:46:45 +02:00
a22d584a93 fix(bench): report instability independently on both builds (#1071)
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>
2026-10-16 15:46:17 +02:00
Kacper Kapuściak 897e368e5d docs(integrations): give TestMu AI its logo and fail docs:check on a vendor page without one (#1201)
* docs(integrations): give TestMu AI its logo and fail docs:check on a vendor page without one

The TestMu AI page shipped in #772 with no sidebar icon and a Font Awesome
card on the integrations overview. The authoring-docs rule existed, but
the PR was a package PR and never loaded the skill.

scripts/check-docs-logos.ts now fails pnpm docs:check when a page under
docs/integrations/, docs/ci/, or docs/migrate/ has no logo as its sidebar
icon, a card linking to it has none, or it has no overview card. The
authoring-docs and ship-pr skills state the rule and point to the check.

* docs(scripts): reject a logo path that leaves its directory; scope the overview-card rule in ship-pr
2026-10-16 11:48:29 +00:00
Oskar Kwaśniewski 3272c163d4 ci(mcp): list e2e mcp in the MCP Registry (#1184) 2026-10-16 13:28:08 +02:00
88ed71768a feat(testmu): add @e2e-dev/testmu device provider (#772)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Anurag Sharma <38938168+anurag-lambdatest@users.noreply.github.com>
Co-authored-by: SahilSawLT <sahilsaw@lambdatest.com>
2026-10-16 12:31:13 +02:00
Oskar Kwaśniewski e4d16eceeb chore(lint): require a check on JSON parsed in package source (#1190)
* chore(lint): require a check on JSON parsed in package source

e2e/no-unchecked-json requires JSON.parse / .json() results in
packages/*/src to be typed unknown (or Promise<unknown>) wherever they
land: assertion, declaration, assignment, or a typed return. Fixes its
25 hits: zod schemas and one readJsonBody helper across the oauth
providers, typed readers in config, eas, and limrun, reasoned disables
for a value we serialize ourselves and two page or public API values.

* fix(lint): flag untyped JSON returns, keep cancelling a stop answer without its job

* fix(lightpanda): read the /json/version answer as unknown
2026-10-16 12:08:02 +02:00