Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
da9a497
test(desktop): read the tree and act through a trait a fake tree impl…
kdy1 Nov 27, 2026
8f7337d
fix(desktop): read an element listed under two parents once
kdy1 Nov 27, 2026
4c401ac
perf(desktop): fold the rows a scroll area holds out of view
kdy1 Nov 27, 2026
c999cf1
feat(desktop): app.back() presses the app's Back menu item
kdy1 Nov 27, 2026
142ed19
feat(desktop): app.clearState() and test.setup sessions for an appPat…
kdy1 Nov 27, 2026
cbac505
feat(desktop): record the app's window with ScreenCaptureKit
kdy1 Nov 27, 2026
3ebdaaf
docs(desktop): list back, clearState, sessions, and video in the README
kdy1 Nov 27, 2026
32862e7
test(desktop): run the video tests at a macOS Darwin version on any OS
kdy1 Nov 27, 2026
43be01e
chore(desktop): add a changeset for app.back, clearState, sessions, a…
kdy1 Nov 27, 2026
42632ce
fix(desktop): keep the fold line out of what a locator matches
kdy1 Nov 27, 2026
c42be25
fix(desktop): say why a video recorded nothing
kdy1 Nov 27, 2026
78aac7a
fix(desktop): fail the sole-copy check when Spotlight does not answer
kdy1 Nov 27, 2026
e90769b
fix(desktop): refuse app.back() when its budget cannot hold the enabl…
kdy1 Nov 27, 2026
810c95d
fix(desktop): time a video's stop from its first frame, and tell a re…
kdy1 Nov 27, 2026
2d75cc9
test(desktop): walk a fake menu bar for app.back()
kdy1 Nov 27, 2026
e9baef0
test(desktop): read a row partly in view rather than fold it
kdy1 Nov 27, 2026
517c7f5
ci(desktop): run the engine's unit suite in the macOS native job
kdy1 Nov 27, 2026
91e94ec
chore(desktop): say what app.back() presses and what video needs in t…
kdy1 Nov 27, 2026
a9a5ca0
fix(desktop): name a row by a numeric cell in selectOption as the sna…
kdy1 Nov 27, 2026
67f789f
fix(desktop): take an underscore in a bundle id, and never one defaul…
kdy1 Nov 27, 2026
4b61dd1
fix(desktop): read a selected row out of view, and say what an absenc…
kdy1 Nov 27, 2026
1c64026
fix(desktop): read an open menu as on screen when its button scrolled…
kdy1 Nov 27, 2026
9e07138
fix(desktop): press Back only in the active window
kdy1 Nov 27, 2026
e82f88f
fix(desktop): never press a Back in another menu when the app's own i…
kdy1 Nov 27, 2026
3301939
fix(desktop): drop a video file whose stop failed, and say why a vide…
kdy1 Nov 27, 2026
8401719
fix(desktop): move the video when a window is made active, and stop r…
kdy1 Nov 27, 2026
19242fc
test(desktop): locate through the surface never finds a fold line by …
kdy1 Nov 27, 2026
42a9e50
fix(desktop): read Back's menus again before pressing it
kdy1 Nov 28, 2026
6d3c6a7
refactor(desktop): move the snapshot and actions tests into their own…
kdy1 Nov 28, 2026
b661736
docs(desktop): say a refused window is not recorded again for the who…
kdy1 Nov 28, 2026
9789657
docs(desktop): move back, long lists, state, and video into the deskt…
kdy1 Nov 29, 2026
928ed8b
fix(desktop): read a window as incomplete when the walk to its focus …
kdy1 Nov 29, 2026
c9ae29d
fix(desktop): stop state commands at the operation's budget
kdy1 Nov 29, 2026
7b4ea28
fix(desktop): remove the video files an abandoned recording kept
kdy1 Nov 29, 2026
b7b7747
fix(desktop): decide a video switch in turn when another is still queued
kdy1 Nov 29, 2026
93eef71
docs(desktop): say clearState and sessions fail with OPERATION_TIMEOU…
kdy1 Nov 29, 2026
d40c898
fix(desktop): remove the file a failed video start left behind
kdy1 Nov 29, 2026
6d1b8ba
fix(desktop): take a video segment's start time before the start goes
kdy1 Nov 29, 2026
9d76891
fix(desktop): try a window again when the budget, not the window, sto…
kdy1 Nov 29, 2026
b25c754
fix(desktop): fail a video start the operation's cancel or budget ended
kdy1 Nov 29, 2026
b3cb12c
fix(desktop): name a row without a heading's level, as the snapshot does
kdy1 Nov 29, 2026
6a08c89
docs(desktop): name pressBack among the calls inputId and cancelInput…
kdy1 Nov 29, 2026
4e35673
fix(desktop): leave out the path of a running copy that has no bundle
kdy1 Nov 29, 2026
85168e0
test(desktop): let the fake table's selection select its rows
kdy1 Nov 29, 2026
065379b
docs(desktop): drop the stale unsupported line, and name Screen Recor…
kdy1 Nov 29, 2026
4ec9465
test(desktop): script the fake driver's bundle lookup like its other …
kdy1 Nov 29, 2026
94ad02f
fix(desktop): start no state directory removal once the operation ended
kdy1 Nov 29, 2026
2265c3a
test(desktop): let the fake table's selection replace the one before
kdy1 Nov 29, 2026
d2a1a76
fix(desktop): start no state command when the operation has no time left
kdy1 Nov 29, 2026
9067fda
fix(desktop): read the state budget once before it bounds the commands
kdy1 Nov 29, 2026
0b96c24
test(desktop): check a follow that comes while a switch is still queued
kdy1 Nov 29, 2026
59b14e5
docs(desktop): name video among what Screen Recording is for in the s…
kdy1 Nov 30, 2026
6a832d5
test(desktop): give the state tests' scratch build its executable
kdy1 Nov 30, 2026
9777aa1
fix(desktop): choose a tab view's option by the role select already read
kdy1 Nov 30, 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/desktop-back-state-video.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2e-dev/desktop': patch
---

The desktop engine adds `app.back()`, which presses the app's Back menu item (one titled Back or Go Back, else the one whose shortcut is Command-[, which an app may give another command) and fails when the app has neither, and `app.clearState()` and `test.setup` sessions for an `app.appPath` target: a reset clears the app's defaults, saved window state, and container, and refuses while macOS knows another copy of the bundle id. `video: 'on'`, `--video on`, and `app.startRecording()` record the app's window with ScreenCaptureKit (macOS 15 or later, with Screen Recording permission), one file per window `screen` reads. Rows a list holds out of view read as one hidden line, so a long list reads as fast as a short one; `scrollUntilVisible` brings a row in.
7 changes: 4 additions & 3 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,12 @@ jobs:
- uses: ./.github/actions/load-x64-addon
with:
addon: packages/desktop/desktop.darwin-x64.node
# The engine's loader on the addon just built: the test that runs it is skipped wherever no addon was built.
- name: Load the addon through the engine
# The engine's unit suite on macOS, with the addon just built: its loader test, and the state tests that guard
# what `app.clearState()` removes from ~/Library, are skipped on the Linux test jobs.
- name: Run the engine's unit tests with the addon
env:
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
run: pnpm --filter @e2e-dev/core run build && pnpm --filter @e2e-dev/desktop exec vitest run

# The Electron engine on its testbed app. Electron has no headless mode, so
# the app runs under a virtual display.
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ trees, on both platforms, without a device.
(the desktop driver's `cargo fmt --check`, clippy, and `cargo test`, a
build for both Mac architectures with each one's architecture checked by
`lipo`, a load of the arm64 build, also
through the engine's loader test, and a load of the x64 build in the
through the engine's unit suite, which runs its macOS-only tests there, and a load of the x64 build in the
official darwin-x64 Node under Rosetta; rustup, when the image has none,
comes from the rustup-init release and SHA-256 that
`.github/actions/rust-toolchain` pins), which
Expand Down
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/e2e-desktop-napi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ objc2 = "0.6"
objc2-foundation = { version = "0.3", features = ["NSArray", "NSDictionary", "NSString", "NSURL", "NSError"] }
objc2-app-kit = { version = "0.3", features = ["NSWorkspace", "NSRunningApplication", "block2"] }
block2 = "0.6"
objc2-screen-capture-kit = { version = "0.3", default-features = false, features = ["std", "block2", "objc2-core-foundation", "objc2-core-graphics", "SCError", "SCRecordingOutput", "SCShareableContent", "SCStream"] }
libc = "0.2"

[build-dependencies]
Expand Down
442 changes: 442 additions & 0 deletions crates/e2e-desktop-napi/src/actions/menu.rs

Large diffs are not rendered by default.

Loading
Loading