Repository navigation
fix(desktop): read container text, poll stale expect reads, and follow an agent's new window (ENG-1533) #2357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kdy1
wants to merge
23
commits into
kdy1/desktop-tree-back-state-video
from
kdy1/desktop-engine-locators
+963
−84
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
0104f66
fix(desktop): give a located container the text its descendants show
kdy1 314aa97
fix(expect): poll again on a read the screen changed under, and time …
kdy1 2f79837
fix(desktop): tap the row or button a tapped text sits in
kdy1 ff514e6
fix(desktop): let an agent step follow a window it opens while one is…
kdy1 8e7f123
fix(agent): say in the type tool that a slider takes its number there
kdy1 0f5c96d
fix(desktop): open an app in the foreground only once it has a key wi…
kdy1 28fd58e
test(desktop): read a located list's text without its fold line
kdy1 838fdcd
feat(core): name the agent step on every operation it makes
kdy1 de5e65d
fix(desktop): follow an agent's new window within its step, replayed …
kdy1 97ffa63
fix(desktop): leave hidden nodes out of a container's text, and keep …
kdy1 80faca9
fix(expect): give the engine's reason when every read failed until th…
kdy1 41dcd83
fix(desktop): fail the key-window wait on a late cancel or an app tha…
kdy1 0bcb203
fix(desktop): open a row's menu from text in a cell that takes its ow…
kdy1 a3b7cc8
refactor(desktop): drop follow's empty-list branch, which no read rea…
kdy1 6e4c181
docs(desktop): say when keyWindow fails the open
kdy1 644625b
fix(desktop): measure a test's point from the active window after an …
kdy1 3f56a9a
fix(core): keep the engine's reason in reads that use only the node
kdy1 5c5ce6e
docs(core): name every step that stamps agentStep
kdy1 bc9aed3
docs(desktop): move container text, text taps, and agent following in…
kdy1 9122160
fix(desktop): read the text under a heading that has none of its own …
kdy1 860a15b
fix(desktop): follow a window the agent step opened once it takes focus
kdy1 b74a698
fix(desktop): open a row's menu from a secondary tap on a cell with n…
kdy1 d16acab
docs(desktop): put pointIn's comment back on pointIn
kdy1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@e2e-dev/core': patch | ||
| --- | ||
|
|
||
| The agent's `type` tool now says that a slider or a spin button (stepper) takes its new number through it, so a model types `18` into a slider instead of clicking and pressing keys on it and giving up. It steps the control with arrow keys only when the value it shows then is not that number. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| '@e2e-dev/core': patch | ||
| 'e2e': patch | ||
| '@e2e-dev/web': patch | ||
| '@e2e-dev/mobile': patch | ||
| --- | ||
|
|
||
| An engine operation now carries `agentStep`, an id of the agent step it belongs to (`agent.act`, `agent.assert` on a custom executor, or an `e2e mcp` session), on every operation of the step, replayed from the cache as well as live, where `origin` is `test`. An engine may scope state to one agent step with it; the desktop engine follows a window an agent step opened only within that step. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| 'e2e': patch | ||
| '@e2e-dev/core': patch | ||
| --- | ||
|
|
||
| An `expect` poll, `locator.waitFor`, and the other polling reads no longer fail with `node became stale` when the engine found the screen changing under every read until the deadline, as a SwiftUI app that re-creates its elements on each state change can make it. They sample again, and a timeout is the assertion's own `ASSERTION_FAILED` (or `waitFor`'s `LOCATOR_NOT_FOUND`), whose `observed` line gives the engine's own reason the last reads failed, such as a locked screen, and carries that error as its cause. Such a read never lets a negated assertion or `waitFor({ state: 'detached' })` pass. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.