Skip to content

Let visual capture deep-link when RNTester restores another screen - #59488

Closed
cortinico wants to merge 1 commit into
react:mainfrom
cortinico:codex/visual-capture-deeplink-recovery
Closed

cortinico wants to merge 1 commit into
react:mainfrom
cortinico:codex/visual-capture-deeplink-recovery

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

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.

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.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 26, 2026
@cortinico
cortinico marked this pull request as ready for review October 26, 2026 14:04
@meta-codesync

meta-codesync Bot commented Oct 26, 2026

Copy link
Copy Markdown

@cortinico has imported this pull request. If you are a Meta employee, you can view this in D127578936.

@meta-codesync meta-codesync Bot closed this in 6ebb129 Oct 26, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Oct 26, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cortinico in 6ebb129

When will my fix make it into a release? | How to file a pick request?

@meta-codesync

meta-codesync Bot commented Oct 26, 2026

Copy link
Copy Markdown

@cortinico merged this pull request in 6ebb129.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants