Make flaky RNTester image E2E flows Android-only (#57405)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/57405

The `image-blur-prefetch` and `image-wide-gamut` Maestro flows under `packages/rn-tester/.maestro/` were added recently and are too flaky on the iOS E2E job (`test_e2e_ios_rntester`), repeatedly failing builds in the React Native OSS repo. Both rely on `assertScreenshot` color/blur comparisons that don't reproduce reliably on the iOS simulator in CI.

This wraps each flow in a `runFlow: when: platform: Android` guard and adds the `android-only` tag, matching the existing pattern used by `image-progressive-jpeg.yml` and `image-getsize-local-drawables.yml`. On iOS the wrapped `runFlow` is skipped, leaving an empty (passing) flow; on Android the flow runs in full, so Android coverage is unchanged.

The long-standing `image.yml` flow (cross-platform test case in place since 2024) is intentionally left untouched and continues to run on iOS.

Changelog: [Internal]

Reviewed By: zeyap

Differential Revision: D110372082

fbshipit-source-id: 8a33c32dff94017cb1706ce706876101d7a109a2
This commit is contained in:
Peter Abbondanzo authored and meta-codesync[bot] committed 2026-07-02 14:19:29 -07:00
1 parent 3d9cc50c86
commit dfab628f8d
4 files changed
+88 -74

No files matched your search

@@ -1,35 +1,42 @@
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
tags:
- android-only
---
# Prefetch an image, then render the same URI with blurRadius so the blur
# postprocessor applies to the already-decoded bitmap. Cross-platform.
- runFlow: ./helpers/launch-app-and-search.yml
- inputText:
text: 'Image'
- assertVisible:
id: 'Image'
- tapOn:
id: 'Image'
- assertVisible:
id: 'example_search'
- tapOn:
id: 'example_search'
- inputText: 'Blur Radius with Prefetch'
- hideKeyboard
- scrollUntilVisible:
element:
id: 'image-blur-prefetch'
direction: DOWN
speed: 40
timeout: 10000
- extendedWaitUntil:
visible: 'prefetch: ok'
timeout: 20000
- extendedWaitUntil:
visible: 'blurred image: loaded'
timeout: 20000
# Change this to takeScreenshot when you want to update the screenshot
- assertScreenshot:
path: screenshots/image-blur-prefetch-${maestro.platform}
cropOn:
id: 'image-blur-prefetch'
thresholdPercentage: 95
# Android-only: prefetch an image, then render the same URI with blurRadius so
# the blur postprocessor applies to the already-decoded bitmap. Flaky on the iOS
# E2E job, so guarded to Android; iOS skips this flow (empty=pass).
- runFlow:
when:
platform: Android
commands:
- runFlow: ./helpers/launch-app-and-search.yml
- inputText:
text: 'Image'
- assertVisible:
id: 'Image'
- tapOn:
id: 'Image'
- assertVisible:
id: 'example_search'
- tapOn:
id: 'example_search'
- inputText: 'Blur Radius with Prefetch'
- hideKeyboard
- scrollUntilVisible:
element:
id: 'image-blur-prefetch'
direction: DOWN
speed: 40
timeout: 10000
- extendedWaitUntil:
visible: 'prefetch: ok'
timeout: 20000
- extendedWaitUntil:
visible: 'blurred image: loaded'
timeout: 20000
# Change this to takeScreenshot when you want to update the screenshot
- assertScreenshot:
path: screenshots/image-blur-prefetch-${maestro.platform}
cropOn:
id: 'image-blur-prefetch'
thresholdPercentage: 95
@@ -1,43 +1,50 @@
appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp
tags:
- android-only
---
# Alpha transparency + sRGB vs Display-P3 wide-gamut. Color fidelity needs a
# screenshot, so we assert load status only. Cross-platform.
- runFlow: ./helpers/launch-app-and-search.yml
- inputText:
text: 'Image'
- assertVisible:
id: 'Image'
- tapOn:
id: 'Image'
- assertVisible:
id: 'example_search'
- tapOn:
id: 'example_search'
- inputText: 'Wide Gamut'
- hideKeyboard
- scrollUntilVisible:
element:
id: 'image-wide-gamut'
direction: DOWN
speed: 40
timeout: 10000
- extendedWaitUntil:
visible: 'alpha: loaded'
timeout: 15000
- scrollUntilVisible:
element: 'sRGB: loaded'
direction: DOWN
speed: 40
timeout: 20000
# External URL; accept loaded or error.
- scrollUntilVisible:
element: 'P3: (loaded|error)'
direction: DOWN
speed: 40
timeout: 20000
# Change this to takeScreenshot when you want to update the screenshot
- assertScreenshot:
path: screenshots/image-wide-gamut-${maestro.platform}
cropOn:
id: 'image-wide-gamut'
thresholdPercentage: 95
# Android-only: alpha transparency + sRGB vs Display-P3 wide-gamut. Color
# fidelity needs a screenshot, so we assert load status only. Flaky on the iOS
# E2E job, so guarded to Android; iOS skips this flow (empty=pass).
- runFlow:
when:
platform: Android
commands:
- runFlow: ./helpers/launch-app-and-search.yml
- inputText:
text: 'Image'
- assertVisible:
id: 'Image'
- tapOn:
id: 'Image'
- assertVisible:
id: 'example_search'
- tapOn:
id: 'example_search'
- inputText: 'Wide Gamut'
- hideKeyboard
- scrollUntilVisible:
element:
id: 'image-wide-gamut'
direction: DOWN
speed: 40
timeout: 10000
- extendedWaitUntil:
visible: 'alpha: loaded'
timeout: 15000
- scrollUntilVisible:
element: 'sRGB: loaded'
direction: DOWN
speed: 40
timeout: 20000
# External URL; accept loaded or error.
- scrollUntilVisible:
element: 'P3: (loaded|error)'
direction: DOWN
speed: 40
timeout: 20000
# Change this to takeScreenshot when you want to update the screenshot
- assertScreenshot:
path: screenshots/image-wide-gamut-${maestro.platform}
cropOn:
id: 'image-wide-gamut'
thresholdPercentage: 95
Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB