mirror of
https://github.com/stablyai/orca.git
synced 2026-09-30 00:03:15 +00:00
18 lines
556 B
JavaScript
18 lines
556 B
JavaScript
import {
|
|
tapHostedIosAccessibilityControl,
|
|
waitForHostedIosAccessibilityControlMatch
|
|
} from './hosted-ios-emulator-accessibility.mjs'
|
|
|
|
export async function confirmEmulatorPairingDeepLink(
|
|
emulator,
|
|
timeoutMs,
|
|
waitForControl = waitForHostedIosAccessibilityControlMatch,
|
|
tapControl = tapHostedIosAccessibilityControl
|
|
) {
|
|
const nextControl = await waitForControl(emulator, ['Open', 'Pair'], timeoutMs)
|
|
if (nextControl.label === 'Open') {
|
|
await tapControl(emulator, 'Open', timeoutMs)
|
|
}
|
|
await tapControl(emulator, 'Pair', timeoutMs)
|
|
}
|