Skip to content

Commit 74f3899

Browse files
committed
test(apple-runner): pin the capture raise condition on .unknown too
The raise table claimed to pin every state `macAppCaptureNeedsRaise` branches on but omitted `.unknown`, while the read table in the same test pinned it — the state worth pinning on one side could not be unpinnable on the other. The rows convert the silent drift path into a red row: `.unknown` raises for a window-level capture, where the activation is the standing route's attempt to settle an app whose state the SDK cannot report, and stays false for `--fullscreen`, whose pixels answer from any foreground. Expectations verified against the implemented condition, not pasted. No behavior change. Partial #3254
1 parent bca5e2d commit 74f3899

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+LifecycleTests.swift‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,20 @@ extension RunnerTests {
140140
(.runningForeground, false),
141141
]
142142
let foreground = XCUIApplication.State.runningForeground
143+
let unknown = XCUIApplication.State.unknown
143144
let notRunning = XCUIApplication.State.notRunning
144145
let raiseRows: [(fullscreen: Bool?, state: XCUIApplication.State, expected: Bool)] = [
145146
(nil, foreground, false),
146147
(nil, .runningBackground, true),
148+
(nil, unknown, true),
147149
(nil, notRunning, true),
148150
(false, foreground, false),
149151
(false, .runningBackground, true),
152+
(false, unknown, true),
150153
(false, notRunning, true),
151154
(true, foreground, false),
152155
(true, .runningBackground, false),
156+
(true, unknown, false),
153157
(true, notRunning, true),
154158
]
155159
for row in states {

0 commit comments

Comments
 (0)