Repository navigation
Commit 92db564
fix(ios-runner): stop wide sliders from wedging tree snapshots (#3776)
* fix(ios-runner): find collapsed tab items in one query
A wide native slider qualifies for the collapsed tab fallback, which
read every live descendant of the app one attribute at a time on the
XCTest main thread. The tree-processing slice cannot cancel those
reads, so a crowded screen or a sheet with sliders kept the runner busy
until it reported wedged. Match candidates inside one XCTest query with
a predicate that applies the fallback's own content, type and geometry
rules and copies each match's attributes as XCTest evaluates it. Start
that query only while the time left in the processing slice covers what
the capture's root tree read took; when it cannot start, the tree tier
reports a deadline-exhausted, truncated capture so the plan can use the
next backend.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* refactor(ios-runner): name the query start check for any XCTest query
The collapsed tab query now shares the check with the query sweep, so
the name no longer belongs to the sweep alone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* test(ios-runner): keep the wide slider fixture on screen on the Duo
The slider sat at y=800, below the iPhone Duo inner display, so a live
snapshot there left it out. Above the crowded rows it is on screen on
an iPhone and on the inner display, and it still covers no row.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* test(ios-runner): drive the plan past a collapsed tab query that cannot start
A stub slows the plan's root tree read so the processing slice left
for the collapsed tab query is shorter than the read. The plan must
reject the truncated tree with the budget reason instead of accepting
it as healthy. Reverting the tree tier's outcome in the plan fails it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* fix(ios-runner): keep ordinary sliders out of tab recovery
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Michał Pierzchała <[email protected]>1 parent e6340d2 commit 92db564
7 files changed
Lines changed: 470 additions & 118 deletions
File tree
- apple/runner/AgentDeviceRunner
- AgentDeviceRunnerUITests
- UnitTests
- AgentDeviceRunner
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
851 | 876 | | |
852 | 877 | | |
853 | 878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
| |||
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
193 | 196 | | |
194 | | - | |
195 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
| |||
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
215 | | - | |
| 220 | + | |
216 | 221 | | |
217 | 222 | | |
218 | 223 | | |
| |||
269 | 274 | | |
270 | 275 | | |
271 | 276 | | |
272 | | - | |
| 277 | + | |
273 | 278 | | |
274 | 279 | | |
275 | 280 | | |
276 | 281 | | |
277 | 282 | | |
278 | 283 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
285 | 293 | | |
286 | 294 | | |
287 | 295 | | |
| |||
469 | 477 | | |
470 | 478 | | |
471 | 479 | | |
472 | | - | |
| 480 | + | |
473 | 481 | | |
474 | 482 | | |
475 | 483 | | |
| |||
0 commit comments