Files
e2e/docs/reference
Oskar Kwaśniewski 4480e8b0e5 perf(agent-device): deterministic steps act at once; settle is for the agent (#283)
* perf(agent-device): deterministic steps act at once; settle is for the agent

A test's step verifies its outcome with expect, so it never waits for the
screen to settle. The runner now tells engines who is acting through
OperationContext.origin ('test' from the locator engine, 'agent' from the
act loop), and the device engine settles only agent actions.

The one wait a test keeps is the transition budget: accessibility frames
report a control's final position from the first frame of a transition,
so a modal's button or an alert's OK looks landed while it is still
sliding, and a tap there hits what is behind it. A control that appeared
or moved with the previous action waits out the budget (500 ms, counted
from that action's return); one already in place is acted on at once.
Nothing is observed for this, so idle steps pay nothing.

react-native-pager-view, 11 tests, one iPhone 17 Pro simulator:
190 s with agent-device's 500 ms settle, 142 s with 150 ms, 117 s now,
three runs each, all passing. Taps average 673 ms against a 600 ms
XCTest floor; the waiting moved into expect, which polls.

* fix(agent-device): transition guard edge cases from review

A transition wait that is cancelled no longer lets the action behind it
go out; a launch records no screen before it, so every control of the new
screen waits its budget; a toggle already in the wanted state sends
nothing and is not recorded as an action.
2026-09-12 15:57:02 +02:00
..