Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
d42008b
feat(core): list a locator expression's selectors with expressionSele…
kdy1 Nov 25, 2026
14a6388
feat(electron): add @e2e-dev/electron, the Electron engine
kdy1 Nov 25, 2026
9c4184b
test(electron-testbed): add the Electron testbed app and suites
kdy1 Nov 25, 2026
a9fb0d7
docs(electron): add the Electron page and what the engine taught the …
kdy1 Nov 25, 2026
5ecd47a
fix(electron): prove screenshot masking from the DOM, not by matching…
kdy1 Nov 25, 2026
fe6895f
fix(electron): match CSS locators inside open shadow roots
kdy1 Nov 25, 2026
3a86bf4
fix(electron): type only into the node that kept focus
kdy1 Nov 25, 2026
9466e52
fix(electron): clear a field with an edit, not a Delete key press
kdy1 Nov 25, 2026
c32e54e
fix(electron): send no input after an action's budget runs out
kdy1 Nov 25, 2026
57887c0
fix(electron): tap the visible part of a node wider than the window
kdy1 Nov 25, 2026
f857511
fix(electron): press the drag source before scrolling to the target
kdy1 Nov 25, 2026
274dcc0
fix(electron): refuse an option that a disabled group disables
kdy1 Nov 25, 2026
943953c
fix(electron): keep the app's last window open in closeTab
kdy1 Nov 25, 2026
0847cdf
fix(electron): read the value a select or checkbox submits
kdy1 Nov 25, 2026
6550b0a
fix(electron): read every node for a locator, past the observation cap
kdy1 Nov 25, 2026
610c4de
feat(electron): report the empty state toBeEmpty reads
kdy1 Nov 25, 2026
dd75e19
fix(electron): close an app whose launch finished after it was cancelled
kdy1 Nov 25, 2026
8dec636
fix(electron): clear the close timeout once the app has quit
kdy1 Nov 25, 2026
38c1214
fix(electron): let useWindow report which windows are open
kdy1 Nov 25, 2026
498ee95
docs(electron): add the package README and the core.mdx entry, fix a …
kdy1 Nov 25, 2026
fda23c7
fix(electron): restart and end a test cleanly after the app quit itself
kdy1 Nov 25, 2026
f4c8935
fix(electron): give each DevTools call its own object group
kdy1 Nov 25, 2026
396d021
perf(electron): describe a selector's matches in one batch
kdy1 Nov 25, 2026
8ef1a41
fix(electron): refuse --user-data-dir in app.launchArguments too
kdy1 Nov 25, 2026
eb3b5e4
fix(electron): check the document again after a screenshot is captured
kdy1 Nov 25, 2026
318d868
fix(electron): read field values and emptiness from the DOM, not the …
kdy1 Nov 25, 2026
9dc8b01
fix(electron): keep each run of text a node a locator can find
kdy1 Nov 25, 2026
2a4339f
fix(electron): count hidden elements a CSS locator matches
kdy1 Nov 25, 2026
8d42364
fix(electron): fail the focus action when the app moves focus away
kdy1 Nov 25, 2026
1fb4889
fix(electron): stop typing at the keyboard step's deadline
kdy1 Nov 25, 2026
6155542
fix(electron): refuse a key the keyboard cannot press as unsupported
kdy1 Nov 25, 2026
9b7ee48
fix(electron): judge enabled as the tree does, by control and aria-di…
kdy1 Nov 25, 2026
77e2f00
fix(electron): fill date, time, color, and range inputs by setting th…
kdy1 Nov 25, 2026
c3aeee8
fix(electron): report a failure after input was sent as may-have-comm…
kdy1 Nov 25, 2026
bd4f37e
fix(electron): refuse a swipe whose node lost its box, not throw a Ty…
kdy1 Nov 25, 2026
c3aaef5
fix(electron): check executablePath as a runnable file in doctor and …
kdy1 Nov 25, 2026
f61c203
feat(electron): take a timeout in electron.useWindow
kdy1 Nov 25, 2026
ce607f7
docs(electron): say which window screen falls back to, and what getBy…
kdy1 Nov 25, 2026
3668203
fix(electron): keep observed attribute values whole for the harness t…
kdy1 Nov 25, 2026
8b714b1
fix(electron): reduce links in an observation as the web engine does
kdy1 Nov 25, 2026
86b7a64
fix(electron): place hidden locator matches in document order, as fields
kdy1 Nov 25, 2026
a5d0e64
fix(electron): keep the content of an editing host in the tree
kdy1 Nov 25, 2026
91e76e7
fix(electron): read a native field's read-only state from its attribute
kdy1 Nov 25, 2026
38cca35
fix(electron): share one disabled check across pointer, fill, and select
kdy1 Nov 25, 2026
5b728b1
fix(electron): refuse a value a field does not take before touching it
kdy1 Nov 25, 2026
5b93f1b
fix(electron): refuse a setInputFiles path that names no file
kdy1 Nov 25, 2026
1409727
fix(electron): wait for the option selectOption names
kdy1 Nov 25, 2026
1ffcf2c
fix(electron): wait for the drop target to be actionable before dropping
kdy1 Nov 25, 2026
aed803f
fix(electron): stop a point drag at the operation's deadline
kdy1 Nov 25, 2026
08e3d08
fix(electron): report electron.evaluate's own error as EVALUATE_FAILED
kdy1 Nov 25, 2026
a9da861
fix(electron): start the binary ELECTRON_OVERRIDE_DIST_PATH names
kdy1 Nov 25, 2026
5ccf91a
fix(core): word app.open(path) on a target with no URL for any engine
kdy1 Nov 25, 2026
ae7e9cc
test(electron-testbed): cover the observation pixels a model would read
kdy1 Nov 25, 2026
85f6b40
docs(mcp): name the packaged-app form of an Electron session's app
kdy1 Nov 25, 2026
a14cd67
docs(electron): describe each option once, in the options table
kdy1 Nov 25, 2026
d305834
fix(electron): hold app.open() to one launchTimeout budget
kdy1 Nov 25, 2026
4ee6c79
fix(electron): show the window useWindow() matched, not the one at it…
kdy1 Nov 25, 2026
6b041e2
fix(electron): gate every swipe input on the operation's deadline
kdy1 Nov 25, 2026
c17158f
fix(electron): count a CSS locator's matches in document order
kdy1 Nov 25, 2026
0bf86e3
fix(electron): type into a focused field inside a closed shadow root
kdy1 Nov 25, 2026
354864f
fix(electron): read an editing host as not read-only
kdy1 Nov 25, 2026
2c692df
fix(electron): require electron.evaluate's argument when the function…
kdy1 Nov 25, 2026
b7a1c20
fix(core): expressionSelectors fails to compile on an expression kind…
kdy1 Nov 25, 2026
90701e7
fix(electron): read and act on common markup as web() does (ENG-892)
kdy1 Nov 25, 2026
9d9eabd
feat(core): export readPngSize and sleep from @e2e-dev/core/engine
kdy1 Nov 26, 2026
b73acb4
refactor(web,mobile): read a screenshot's size with core's readPngSize
kdy1 Nov 26, 2026
b4c7875
refactor(electron): split the surface by the state each part owns
kdy1 Nov 26, 2026
86fe3d4
feat(electron): type electron.evaluate's module with the project's El…
kdy1 Nov 26, 2026
8f04924
fix(electron): read pickers, editing hosts, select options, cells, an…
kdy1 Nov 26, 2026
193ef64
fix(electron): fill, check, select, upload, and tap as web() does
kdy1 Nov 26, 2026
f228ba0
fix(electron): refuse a launch that cannot work before the first test
kdy1 Nov 26, 2026
ad4d91e
fix(electron): keep reading when the shown window closes, and quit an…
kdy1 Nov 26, 2026
f40b379
test(electron-testbed): cover the cases trying the engine found
kdy1 Nov 26, 2026
918946c
docs(electron): list what trying the engine found to differ from web()
kdy1 Nov 26, 2026
594b769
fix(electron): read ARIA values, states, levels, and boxes as web() does
kdy1 Nov 26, 2026
9eb9d40
fix(electron): act on ARIA widgets and inert elements as web() does
kdy1 Nov 26, 2026
4138989
fix(electron): withhold a screenshot a field outran, and refuse a sec…
kdy1 Nov 26, 2026
632bff2
fix(electron): recover a crashed window, keep downloads in the attemp…
kdy1 Nov 26, 2026
56ae618
test(electron-testbed): cover ARIA values, typeahead, downloads, cras…
kdy1 Nov 26, 2026
0b438c0
docs(electron): say where downloads go, how masks can be beaten, and …
kdy1 Nov 26, 2026
0c0c48a
fix(electron): undo three reads that broke web parity, and read range…
kdy1 Nov 26, 2026
11f8d63
fix(electron): clear with a Delete key, focus as web() does, and poin…
kdy1 Nov 26, 2026
952cfc4
fix(electron): match the OS window title, say the app quit on its own…
kdy1 Nov 26, 2026
9e672a5
test(electron-testbed): cover levels, progress values, Delete-key cle…
kdy1 Nov 26, 2026
2709c32
docs(electron): correct what trying the engine disproved, and map Pla…
kdy1 Nov 26, 2026
78ab509
Merge branch 'main' into kdy1/electron-reference-engine
okwasniewski Nov 26, 2026
086dbe7
chore(electron): align dependency pins with main
okwasniewski Nov 26, 2026
0d4b91c
refactor(electron): split the tree projection by data source
okwasniewski Nov 26, 2026
9fbb288
refactor(electron): one operation budget and one set of pointer gestures
okwasniewski Nov 26, 2026
9f22a29
fix(electron): read label text and match getByText on text alone
okwasniewski Nov 26, 2026
642e519
refactor(electron): locate the executable once, and test the pure logic
okwasniewski Nov 26, 2026
b24560b
fix(electron): keep a vanished node stale on focus and blur
okwasniewski Nov 26, 2026
0f25d94
Merge remote-tracking branch 'origin/main' into kdy1/electron-referen…
okwasniewski Nov 26, 2026
9fdd652
fix(electron): check a label-drawn checkbox, run the testbed in CI
okwasniewski Nov 26, 2026
3ce0069
Merge remote-tracking branch 'origin/main' into kdy1/electron-referen…
okwasniewski Nov 26, 2026
02d395e
perf(core): keep an unscoped query on the resolver's direct path
okwasniewski Nov 26, 2026
6ef71a6
refactor(electron): drive the app over raw CDP, drop playwright-core
okwasniewski Nov 26, 2026
b8ab37a
Merge remote-tracking branch 'origin/main' into oskar/electron-cdp
okwasniewski Nov 26, 2026
970a20a
fix(electron): review round 2 - masks, launch window, input budget
okwasniewski Nov 26, 2026
dd8784e
fix(electron): review round 3 - zoomed masks, stale refs, gestures
okwasniewski Nov 26, 2026
a488b27
fix(electron): free the gesture queue when a renderer crashes
okwasniewski Nov 26, 2026
ddec920
fix(electron): review round 4 - gesture turns, read generation
okwasniewski Nov 26, 2026
cce7586
fix(electron): review round 5 - gesture order, one-document reads
okwasniewski Nov 26, 2026
dd31e04
Merge remote-tracking branch 'origin/main' into oskar/electron-cdp
okwasniewski Nov 27, 2026
238c6cc
fix(electron): address team review - env, dialogs, file bound, masks
okwasniewski Nov 27, 2026
229adc6
docs(electron): shorten README, table of unsupported features
okwasniewski Nov 27, 2026
999fabe
feat(electron): video, downloads, back, in-memory uploads, Windows CI
okwasniewski Nov 27, 2026
cd36229
docs(electron): rewrite guide around tasks, split limits
okwasniewski Nov 27, 2026
f4df6d5
fix(electron): seven state and action gaps from the web comparison
okwasniewski Nov 27, 2026
84b9d2e
Merge remote-tracking branch 'origin/main' into oskar/electron-cdp
okwasniewski Nov 27, 2026
beccdbd
test(electron): Windows has no execute bit to refuse a file by
okwasniewski Nov 27, 2026
b844787
fix(electron): keep covered and hidden windows drawing
okwasniewski Nov 27, 2026
856c478
test(electron): show captured windows on Windows, run testbed regardless
okwasniewski Nov 27, 2026
ccc1d00
test(electron-testbed): scale a capture by the window's content width
okwasniewski Nov 27, 2026
a05c2a0
fix(electron): say a hidden window has no pixels on Windows
okwasniewski Nov 27, 2026
b9ca80a
fix(electron): tell a hidden window from the main process on Windows
okwasniewski Nov 27, 2026
e779c9d
fix(electron): capture a hidden window by counting it as captured
okwasniewski Nov 27, 2026
8f15b77
Merge remote-tracking branch 'origin/main' into oskar/electron-cdp
okwasniewski Nov 27, 2026
a2b431a
docs(electron): apply review notes on the guide
okwasniewski Nov 27, 2026
de0352a
feat(electron)!: window handles in place of useWindow
okwasniewski Nov 27, 2026
c0c1a95
feat(electron)!: onDialog, one place for launch switches, opener rule
okwasniewski Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/app-open-path-message.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2e-dev/core': patch
---

`app.open(path)` on a target with no app URL whose engine opens no links, such as a desktop or Electron app, says the call launches the pinned app and takes no path; it no longer tells the test to use `app.linkBase` or `device.openLink`, which such a target cannot.
5 changes: 5 additions & 0 deletions .changeset/core-engine-png-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2e-dev/core': patch
---

`@e2e-dev/core/engine` exports `readPngSize`, which reads a PNG capture's size from its header, and `sleep`, an abortable wait, so an engine carries no copy of either.
5 changes: 5 additions & 0 deletions .changeset/electron-engine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2e-dev/electron': patch
---

New package: `@e2e-dev/electron`, the Electron engine. `engine: electron()` launches an Electron app (the project's `electron` package running `app.appPath`, or a packaged app through `executablePath`) on an empty user-data directory per attempt, and reads its windows through Chromium's accessibility tree over the DevTools protocol: observation, the `screen` locators and actions, test ids, masked screenshots, the app's windows as tabs, and the `electron` fixture with `evaluate` in the main process, `windows`, `waitForWindow`, `window`, `waitForDownload`, `onDialog`, and `locator`. It records video (the shown window's screencast, encoded with an ffmpeg it downloads on the first recording when the machine has none), and supports `app.back()`, `toBeInViewport`, computed-style reads, and in-memory `setInputFiles`. It uses only the public engine contract and has no runtime dependency: it starts the app and speaks the DevTools protocol itself, the windows over a pipe that opens no port. A window that has loaded no page does not hold up the launch, and a packaged app built with the `EnableNodeCliInspectArguments` fuse off launches too, without `electron.evaluate`. The app is started with only the variables a process needs to start and draw, plus `electron({ env })`, never the run's whole environment. `electron.onDialog('accept' | 'dismiss' | handler)` answers the app's `alert` and `confirm` dialogs, as `browser.onDialog` does on the web; one no handler takes is dismissed and fails the test's next step. A window that shows a local file outside the app's directory is not observed, traced, or captured. `electron` is a required peer: the fixture's types come from it.
5 changes: 5 additions & 0 deletions .changeset/electron-typed-main-module.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2e-dev/electron': patch
---

`electron.evaluate` types the `electron` module its function receives with the project's own `electron` package, now an optional peer, in place of `any`.
5 changes: 5 additions & 0 deletions .changeset/expression-selectors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2e-dev/core': patch
---

`expressionSelectors(expression)` from `@e2e-dev/core/engine` lists the platform selectors a locator expression names. `resolveExpression` answers a selector synchronously, so an engine whose selector language sits across a protocol queries these first and answers from what it read, without walking the expression itself.
5 changes: 5 additions & 0 deletions .changeset/resolve-text-query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2e-dev/core': patch
---

`resolveExpression` from `@e2e-dev/core/engine` takes `textQuery: 'text'`: a `text` query then matches a node's text alone, not its name too, as a browser's text query does, and a text query scoped to an element whose own text matches answers with that element. The default, `'nameOrText'`, is unchanged.
6 changes: 6 additions & 0 deletions .changeset/web-mobile-core-png.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@e2e-dev/web': patch
'@e2e-dev/mobile': patch
---

Read a screenshot's size with `readPngSize` from `@e2e-dev/core/engine` in place of a copy of their own; both now need `@e2e-dev/core` and `e2e` 0.25.1.
4 changes: 4 additions & 0 deletions .fallowrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"apps/desktop-testbed/e2e.config.ts",
"apps/desktop-testbed/e2e.*.config.ts",
"apps/desktop-testbed/tests*/**/*.ts",
"apps/electron-testbed/e2e.config.ts",
"apps/electron-testbed/e2e.*.config.ts",
"apps/electron-testbed/tests*/**/*.ts",
"apps/electron-testbed/app/*.{cjs,js}",
"packages/e2e/tests/types/sdk-types.ts",
"packages/web/tests/types/connection.ts",
"packages/web/tests/types/init-scripts.ts",
Expand Down
56 changes: 55 additions & 1 deletion .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,65 @@ jobs:
REQUIRE_DESKTOP_NATIVE: '1'
run: pnpm --filter @e2e-dev/core run build && pnpm --filter @e2e-dev/desktop exec vitest run tests/unit/driver.test.ts

# The Electron engine on its testbed app. Electron has no headless mode, so
# the app runs under a virtual display.
electron:
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: pnpm/action-setup@9fd676a19091d4595eefd76e4bd31c97133911f1 # v4.2.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 26
cache: pnpm
- uses: ./.github/actions/workspace-install
with:
agent-device-version: ${{ inputs.agent-device-version }}
# Electron needs the system packages Chromium does.
- name: Install Chromium's system packages
uses: ./.github/actions/chromium
- name: Build
run: pnpm --filter @e2e-dev/core --filter e2e --filter @e2e-dev/electron run build
# The engine's own launches and page-side code on real Electron windows.
- name: Electron integration tests
run: xvfb-run --auto-servernum pnpm --filter @e2e-dev/electron run test:integration
- name: Electron testbed
run: xvfb-run --auto-servernum pnpm --filter @e2e-dev/electron-testbed test

# The same engine on Windows: its own process tree, paths, and environment.
electron-windows:
runs-on: windows-latest
timeout-minutes: 20
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: pnpm/action-setup@9fd676a19091d4595eefd76e4bd31c97133911f1 # v4.2.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 26
cache: pnpm
- uses: ./.github/actions/workspace-install
with:
agent-device-version: ${{ inputs.agent-device-version }}
- name: Build
run: pnpm --filter @e2e-dev/core --filter e2e --filter @e2e-dev/electron run build
- name: Electron unit tests
run: pnpm --filter @e2e-dev/electron test
- name: Electron integration tests
run: pnpm --filter @e2e-dev/electron run test:integration
# Each suite reports on its own: one failing does not hide the other.
- name: Electron testbed
if: ${{ !cancelled() }}
run: pnpm --filter @e2e-dev/electron-testbed test

# The one check the ruleset requires from this workflow. A skipped job
# passes (the change cannot reach it); a failed or cancelled one fails it.
gate:
name: spec gate
needs: [check, test, bun, install, native]
needs: [check, test, bun, install, native, electron, electron-windows]
if: ${{ always() }}
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 5
Expand Down
31 changes: 31 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,30 @@ the way a user would.
run the desktop testbed; after a dependency change, also
`pnpm --filter @e2e-dev/desktop licenses:native`, which CI checks. A prototype that runs on macOS only: `prepare`
and `init` refuse any other OS.
- `packages/electron` - the published `@e2e-dev/electron` package: the
Electron engine, contributing the `electron` fixture, and the reference
for an engine built outside this repository (ENG-892): it imports
`@e2e-dev/core/engine` and nothing else at run time: it starts the binary
and speaks the DevTools protocol itself (`src/cdp/`, typed by
`devtools-protocol`), never another engine or an automation library. What it needs from core becomes public
contract (`expressionSelectors` came from it); `docs/engines.mdx` lists the
assumptions it broke. `app.open()` launches the project's `electron`
package on `app.appPath` (or `executablePath`) with a private
`--user-data-dir` per attempt; `prepare` downloads the Electron binary,
since Electron 45 has no install script. Reads join
`Accessibility.getFullAXTree` and one `DOMSnapshot` on backend node ids
(`src/tree.ts`, pure, tested on a captured read); actions run in an
isolated world and send trusted input; the page-side code is typed
functions in `src/in-page/`, sent as source text (`toString()`) and tested
in Chromium (`tests/integration/`). Windows are the tabs. Screenshots
mask password fields and nested documents, and are withheld when the DOM
snapshot finds one inside a closed shadow root, which no mask reaches
(`unmaskableCount`, independent of the accessibility tree). The app gets
only a few variables of the run's environment (`INHERITED_ENV` in
`src/app-process.ts`) and `electron({ env })`. A window that shows a local
file outside the app's directory is not observed, traced, or captured
(`src/file-bound.ts`): an Electron target has no `app.url` for core's
file-app bound to key on.
- `packages/core/src/engine/protocol/` - the engine protocol: the engine
contract as LSP-style JSON-RPC (`connectEngine` client, `serveEngine`
server, spawn/socket/loopback transports), so an engine can run in
Expand Down Expand Up @@ -340,6 +364,13 @@ the way a user would.
pointer and keyboard (`pnpm test:headed`, which moves your pointer), and
`tests-agent/` one `agent.act`. Hand-run on a Mac with Accessibility
permission and the native driver built; no CI job runs it yet.
- `apps/electron-testbed` (`@e2e-dev/electron-testbed`, private) - a small
Electron app (`app/`: context isolation, a preload bridge, IPC, a second
window, a closed-shadow password field) and the e2e suites on
`@e2e-dev/electron` (`tests/` deterministic, `tests-agent/` with a model).
Its windows stay hidden unless `E2E_ELECTRON_HEADED=1`. The `electron`
job in `spec.yml` runs it under xvfb, after the package's integration tests
(`pnpm test:electron-testbed` by hand).
- `examples/` — standalone user-facing projects, one per technology
(`with-vite`, `with-next`, `with-astro`, `with-angular`, `with-expo`, `with-swiftui`,
`with-compose`, `with-kotlin-multiplatform`, `with-flutter`, `with-maui`), each the same
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ prompts and tool descriptions.
### Engine contract

`@e2e-dev/core/engine` (re-exported as `e2e/engine`) is what `@e2e-dev/web`,
`@e2e-dev/mobile`, and `@e2e-dev/desktop` build against, and what a third-party
`@e2e-dev/mobile`, `@e2e-dev/desktop`, and `@e2e-dev/electron` build against, and what a third-party
engine builds against too. A change to that contract bumps `@e2e-dev/core`,
`e2e`, and every engine together in one release, with a changeset for each,
so an engine and a runner from the same release always match. `e2e` and `@e2e-dev/core` are a changesets
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ every tool.
| [`@e2e-dev/web`](https://www.npmjs.com/package/@e2e-dev/web) | Browser engine: Chromium, Firefox, and WebKit through Playwright. |
| [`@e2e-dev/mobile`](https://www.npmjs.com/package/@e2e-dev/mobile) | iOS and Android engine: simulators and emulators through agent-device. |
| [`@e2e-dev/desktop`](https://www.npmjs.com/package/@e2e-dev/desktop) | Desktop engine, a prototype: native apps on macOS through its own Rust accessibility driver. |
| [`@e2e-dev/electron`](https://e2e.com/docs/electron) | Electron engine: an Electron app's windows through Chromium's accessibility tree. |
| [`@e2e-dev/decision`](https://e2e.com/docs/decision-models) | Decision-model executors for bounded semantic actions and assertions, and `decisionFilter()`, which leaves out the tests a pull request is unlikely to affect. |
| [`@e2e-dev/acp`](https://e2e.com/docs/subscriptions#use-your-coding-agent) | Runs agent steps on your own coding agent (Claude Code or Codex) over the Agent Client Protocol. |

Expand Down
1 change: 1 addition & 0 deletions apps/electron-testbed/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.e2e/
102 changes: 102 additions & 0 deletions apps/electron-testbed/app/controls.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'" />
<title>Controls</title>
<style>
body { font: 14px system-ui, sans-serif; margin: 0; }
main { padding: 0 24px 24px; display: grid; gap: 10px; max-width: 420px; }
header { position: sticky; top: 0; height: 60px; background: #fff; border-bottom: 1px solid #ccc; z-index: 1; display: flex; align-items: center; padding: 0 24px; }
#cover { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.2); }
.spacer { height: 900px; }
</style>
</head>
<body>
<header>Sticky header</header>
<main>
<h1>Controls</h1>
<label>Budget <input type="range" min="0" max="1000" step="50" value="100" data-testid="budget" /></label>
<label>Nickname <input type="unknownkind" data-testid="nickname" /></label>
<label>Birthday <input type="date" data-testid="birthday" /></label>
<label>Tint <input type="color" data-testid="tint" /></label>
<div contenteditable="true" data-testid="bare-editor">Bare editor text</div>
<div role="checkbox" aria-checked="mixed" tabindex="0" id="some-files">Some files</div>
<fieldset>
<legend>Tier</legend>
<label><input type="radio" name="tier" value="free" checked /> Free</label>
<label><input type="radio" name="tier" value="paid" /> Paid</label>
</fieldset>
<label>Attachment <input type="file" data-testid="attachment" /></label>
<output data-testid="attachment-count">0 files</output>
<output data-testid="attachment-text"></output>
<details><summary>More options</summary><select data-testid="folded-select"><option>A</option><option>B</option></select></details>
<label>Size
<select data-testid="size">
<option value="xl" label="Extra large">XL</option>
<option value="s">Small</option>
</select>
</label>
<table>
<tbody><tr data-testid="ada-row"><td>Ada</td><td>36</td></tr></tbody>
</table>
<p style="text-transform: uppercase">shouty text</p>
<p data-testid="invisible" style="visibility: hidden">Invisible text</p>
<p data-testid="not-rendered" style="display: none">Not rendered</p>
<div role="slider" aria-label="Volume" aria-valuemin="0" aria-valuemax="10" aria-valuenow="3" aria-valuetext="Low" aria-readonly="true" tabindex="0" style="width: 120px; height: 12px; background: #ddd"></div>
<div role="progressbar" aria-label="Upload" aria-valuenow="40" style="width: 120px; height: 8px; background: #8c8"></div>
<ul role="tree" aria-label="Files"><li role="treeitem" aria-level="1" aria-expanded="false">src</li></ul>
<ul role="listbox" aria-label="Planet" tabindex="0" id="planets">
<li role="option" aria-selected="true">Earth</li>
<li role="option" aria-selected="false">Mars</li>
<li role="option" aria-selected="false">Venus</li>
</ul>
<button type="button" aria-pressed="false">Italic</button>
<section aria-label="Tips"><span tabindex="0" id="tip-anchor">Hover for tip</span> <output data-testid="tip">No tip</output></section>
<a download="note.txt" href="data:text/plain,downloaded%20note">Download note</a>
<h2 aria-level="4">Levels</h2>
<label data-testid="drawn-label"><input type="checkbox" style="position: absolute; width: 0; height: 0; margin: 0; border: 0; padding: 0" /> Drawn by its label</label>
<div data-testid="toast">Saved draft</div>
<progress aria-label="Sync" value="70" max="100"></progress>
<label>Tracked <input data-testid="tracked" value="abc" /></label>
<output data-testid="tracked-event">none</output>
<output data-testid="scheme">unknown</output>
<button type="button" id="hold">Hold</button>
<output data-testid="hold-state">up</output>
<button type="button" id="guard">Guard unload</button>
<button type="button" id="rerender-start">Start re-render</button>
<div id="rerender-host"><button type="button" id="draft">Save draft</button></div>
<output data-testid="draft-status">Not saved</output>
<div draggable="true" id="card" role="button" tabindex="0">Card to move</div>
<div id="tray" role="region" aria-label="Tray" style="width: 160px; height: 48px; border: 1px dashed gray"></div>
<output data-testid="tray-status">Tray empty</output>
<div>Order <strong>ABC123</strong></div>
<span>Ref <em>R77</em></span>
<div aria-hidden="true">Unlisted directions</div>
<label id="replace-label"><input type="checkbox" data-testid="replace-box" /> Replace me</label>
<input type="date" data-testid="hidden-date" style="display: none" />
<input type="file" id="picked" style="display: none" />
<button type="button" data-testid="upload-button">Upload</button>
<output data-testid="picked-name">No file</output>
<div role="radio" tabindex="0" aria-checked="true" data-testid="aria-radio">Custom radio</div>
<button type="button" id="scroll-under">Scroll the target under the header</button>
<div class="spacer"></div>
<button type="button" id="under-header">Behind the header</button>
<output data-testid="under-header-status">Not tapped</output>
<div class="spacer"></div>
</main>
<section aria-label="State parity">
<input type="checkbox" hidden disabled checked data-testid="hidden-check" />
<div role="textbox" aria-label="Locked editor" contenteditable="true" aria-readonly="true" data-testid="locked-editor">Original</div>
<div inert><select aria-label="Inert choice" data-testid="inert-select"><option>First</option><option>Second</option></select></div>
<select aria-label="Place" data-testid="place"><option><span>City</span> Center</option><option>New&nbsp;York</option></select>
<label for="chosen" style="position: relative; display: inline-block">Chosen <a href="#more" data-testid="more-info">More info</a><span data-testid="label-cover" style="position: absolute; inset: 0"></span></label>
<input type="checkbox" id="chosen" data-testid="chosen" />
<output data-testid="more-clicks">0</output>
<div data-testid="disabled-host" aria-disabled="true"></div>
<output data-testid="host-clicks">0</output>
</section>
<p data-testid="far-below" style="margin-top: 3000px">Far below</p>
<script src="controls.js"></script>
</body>
</html>
Loading
Loading