Repository navigation
Commit bc9c486
test(ios): answer the panel fixture's label through KVC (#4320)
* test(ios): answer the panel fixture's label through KVC
A selector predicate reads label through KVC, and KVC caches the
accessor it resolved. After an earlier test evaluated label on an
XCUIElement, the fixture's fall-through called XCTest's getter instead
of the stub, which resolved the fixture app's absent button. The full
nightly suite reached that order; isolated runs did not.
Fixes #4262
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* test(ios): send label to the installed getter from the panel fixture's KVC
The lit-panel probe swaps valueForKey: in every mode but swaps the
label getter only when composed, so an uncomposed probe answered KVC
label with the stub constant for real elements. Sending label reaches
whichever getter is installed: the stub when composed, XCTest's
otherwise, and never KVC's cached accessor.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>1 parent 939102d commit bc9c486
1 file changed
Lines changed: 14 additions & 0 deletions
File tree
- apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| |||
380 | 386 | | |
381 | 387 | | |
382 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
383 | 397 | | |
384 | 398 | | |
385 | 399 | | |
| |||
0 commit comments