Skip to content

Commit 83304bd

Browse files
committed
docs(apple-runner): record why the .presentedSurface activation arm is unreachable from macOS
The arm's #else branch activates, which reads like a background-driving defect on macOS (#3254). It cannot be one: the host never sends either of this arm's two commands to the macOS XCTest runner. `alert` answers through the macOS helper (`runAppleAlert`'s host split, pinned by alert.test.ts), and `action-button` is refused by the owner's Action Button fact (`hasAppleActionButton`, pinned for every leaf by runtime.test.ts) before dispatch. The route off iOS is reached only by the tvOS and visionOS runners. Records the audit where a reader of the axis will find it; no behavior change. Partial #3254
1 parent 8ffc692 commit 83304bd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandDispatch.swift‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,10 @@ extension RunnerTests {
536536
#else
537537
// The platform exception, written once: `SystemSurfaceHostRegistry` registers no hosts off iOS,
538538
// so nothing is ever served in place there and such a command keeps the activation route this
539-
// axis found it on.
539+
// axis found it on. The macOS host never sends one of this arm's commands here: `alert` answers
540+
// through the macOS helper (`runAppleAlert`'s host split) and `action-button` is refused by the
541+
// owner's Action Button fact (`hasAppleActionButton`) before dispatch, so no macOS request can
542+
// be activated from this arm, and only the tvOS and visionOS runners reach it off iOS.
540543
return prepareActivatedTarget(command: command)
541544
#endif
542545
case .existingApp:

0 commit comments

Comments
 (0)