From 6ebb129cc382f21e2dfe1f98cd010297bc794aac Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 26 Oct 2026 08:12:24 -0700 Subject: [PATCH] Let visual capture deep-link when RNTester restores another screen (#59488) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Visual capture on main (run https://github.com/react/react-native/actions/runs/40319678403) failed almost every iOS flow at the shared "Components is visible" precondition, including retries. The helper currently requires RNTester to show its home screen before sending a direct example deep link. A relaunched app can instead restore another screen. Send the deep link immediately after launch; each flow already waits for and asserts its target example before taking screenshots. This lets later flows recover if an earlier flow leaves the app off the home screen. The first border flow also failed at an example assertion, so this change may not resolve all failures in that run. iOS capture CI is needed to verify the behavior. ## Changelog: [INTERNAL] [FIXED] - Allow visual capture to recover from RNTester reopening away from the home screen. Pull Request resolved: https://github.com/react/react-native/pull/59488 Test Plan: - `yarn test .github/workflow-scripts/__tests__/visual-capture-test.js --runInBand` — 10 tests passed. - `yarn prettier --check packages/rn-tester/visual-tests/helpers/open-example.yml` — passed. - `git diff --check` — passed. - iOS visual capture could not be run locally; verify on draft PR CI. Reviewed By: christophpurrer Differential Revision: D127578936 Pulled By: cortinico fbshipit-source-id: 91a6c9108e8e2dcb19d0fb77eb9c4eb1d306557a --- packages/rn-tester/visual-tests/helpers/open-example.yml | 3 --- 1 file changed, 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 80d5d0f8896..a300ba8c7a3 100644 --- a/packages/rn-tester/visual-tests/helpers/open-example.yml +++ b/packages/rn-tester/visual-tests/helpers/open-example.yml @@ -2,9 +2,6 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebo --- - launchApp: stopApp: true -- extendedWaitUntil: - visible: 'Components' - timeout: 30000 - openLink: ${EXAMPLE_URL} - runFlow: when: