Skip to content

Commit 859d9b8

Browse files
cortinicometa-codesync[bot]
authored andcommitted
Align SectionList Maestro scroll with full-visibility threshold (#59490)
Summary: The iOS Maestro `sectionlist-viewability` flow is repeatedly failing on main when it waits for `Cheesecake` in `output`, for example https://github.com/react/react-native/actions/runs/40321872438. The test currently stops scrolling once 50% of the item is visible, while the RNTester example sets `viewAreaCoveragePercentThreshold: 100`. Require full item visibility before asserting that the example reported it. Remove the redundant centering requirement so the scroll can stop at the visibility condition. This is a targeted test-stability hypothesis; the draft PR CI must confirm it on the iOS simulator. If the 100% condition cannot be reached reliably, the PR should not be merged as-is. ## Changelog: [INTERNAL] [FIXED] - Align the SectionList viewability flow with the example visibility threshold. Pull Request resolved: #59490 Test Plan: - `yarn prettier --check packages/rn-tester/.maestro/sectionlist-viewability.yml` — passed. - `git diff --check` — passed. - iOS Maestro Cloud could not be run locally; verify on draft PR CI. Reviewed By: christophpurrer Differential Revision: D127579075 Pulled By: cortinico fbshipit-source-id: 40ab0d6827e18c8161b08820e8f547d4f2994e6f
1 parent c9b444c commit 859d9b8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎packages/rn-tester/.maestro/sectionlist-viewability.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,14 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebo
2828
visible:
2929
id: 'section-list-viewability-horizontal-wait'
3030
timeout: 30000
31-
# Target the second-to-last item: the last one can never reach the center, so
32-
# `centerElement` would burn extra swipes at the end of the list.
31+
# The example requires 100% item visibility before reporting viewability.
32+
# Target Cheesecake, the item asserted in the output below.
3333
- scrollUntilVisible:
3434
element:
3535
id: 'Cheesecake'
3636
direction: RIGHT
3737
speed: 60
38-
visibilityPercentage: 50
39-
centerElement: true
38+
visibilityPercentage: 100
4039
timeout: 120000
4140
- extendedWaitUntil:
4241
visible:

0 commit comments

Comments
 (0)