Skip to content

Commit a0c5aec

Browse files
thymikeeclaude
andcommitted
fix(ios): pass the tvOS Menu press as a dispatched dismissal
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent c742a00 commit a0c5aec

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,17 +215,17 @@ extension RunnerTests {
215215
}
216216

217217
#if os(tvOS)
218-
let pressedMenu = pressTvRemote(.menu)
218+
_ = pressTvRemote(.menu)
219219
sleepFor(0.2)
220220
let tvVisible = isKeyboardVisible(app: app)
221221
return RunnerKeyboardDismissOutcome(
222222
wasVisible: true,
223223
dismissed: !tvVisible,
224224
visible: tvVisible,
225225
mechanism: tvVisible ? nil : .dismissKey,
226-
// `pressTvRemote` answers false only on a build that has no remote to press, so on tvOS the
227-
// Menu press went out and the refusal that follows did dispatch: it keeps the generic code.
228-
dispatchedDismissal: pressedMenu
226+
// On tvOS the Menu press always goes out, so a refusal after it did dispatch and keeps the
227+
// generic code.
228+
dispatchedDismissal: true
229229
)
230230
#else
231231
if tapKeyboardDismissControl(app: app) {

0 commit comments

Comments
 (0)