From 8e4ca9ca9e69f398b9748290d856d2b405c14bbb Mon Sep 17 00:00:00 2001 From: Rob Hogan <2590098+robhogan@users.noreply.github.com> Date: Fri, 13 Nov 2026 13:29:27 +0000 Subject: [PATCH] Send the visual deep link once on iOS #59518 sends each visual example's deep link twice, so a slow Android emulator can't drop it before RNTester's JS Linking listener is registered. On iOS, each link raises an "Open in RNTester?" dialog and only one is accepted, so `border` fails its first attempt in every iOS capture job and leaves RNTester on the Border example. `button/default-styling/default` then captures that screen, which fails the iOS visual check on unrelated PRs. The second link is now sent on Android only. Changelog: [Internal] --- .../visual-tests/helpers/open-example.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/rn-tester/visual-tests/helpers/open-example.yml b/packages/rn-tester/visual-tests/helpers/open-example.yml index 1c6e4e16258a..fdbb6e6fda00 100644 --- a/packages/rn-tester/visual-tests/helpers/open-example.yml +++ b/packages/rn-tester/visual-tests/helpers/open-example.yml @@ -5,9 +5,17 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebo - waitForAnimationToEnd: timeout: 30000 - openLink: ${EXAMPLE_URL} -- waitForAnimationToEnd: - timeout: 15000 -- openLink: ${EXAMPLE_URL} +# On a slow Android emulator, the first link can arrive before the JS Linking +# listener is registered and be dropped, so Android sends it again once settled. +# On iOS, each link raises an "Open in RNTester?" dialog, so it's sent once and +# accepted. A second, unaccepted dialog leaves RNTester on the previous screen. +- runFlow: + when: + platform: Android + commands: + - waitForAnimationToEnd: + timeout: 15000 + - openLink: ${EXAMPLE_URL} - runFlow: when: platform: iOS