Commit 6a9e275
committed
test(ios-runner): cover alert activation against an app that never idles
Reverting the alert path to a plain `activateElement` kept every test green, so the #2546 failure had
no guard: the deadline tests returned before activation, and the ones that reached it used a 10 s
timeout on a fixture that had already settled.
The fixture now animates without end until an alert button is answered, which is the state that made
XCTest hold the event past the caller's deadline in the field. A test that reaches activation there
and is given 6 s reports what actually happens: the response comes back in well under a second of
activation, and if it ever reports `ALERT_DEADLINE_EXCEEDED` again the fixture says whether a button
was activated behind that answer. Reverting the seam costs the run 18 s and produces exactly the
original defect — `ALERT_DEADLINE_EXCEEDED` alongside `First actions: 1`.
Only a `UIView` animation counts here: a repeating main-thread timer and a `CABasicAnimation` both
left the app looking idle and the reverted path still passed.1 parent 265e29e commit 6a9e275
2 files changed
Lines changed: 71 additions & 0 deletions
File tree
- apple/runner/AgentDeviceRunner
- AgentDeviceRunnerUITests/UnitTests
- AgentDeviceRunner
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
70 | 105 | | |
71 | 106 | | |
72 | 107 | | |
| |||
88 | 123 | | |
89 | 124 | | |
90 | 125 | | |
| 126 | + | |
91 | 127 | | |
92 | 128 | | |
93 | 129 | | |
| |||
110 | 146 | | |
111 | 147 | | |
112 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
113 | 152 | | |
114 | 153 | | |
115 | 154 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
60 | 92 | | |
61 | 93 | | |
62 | 94 | | |
| |||
0 commit comments