Repository navigation
feat(e2e): wait for the UI to settle before gesturing - #1240
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Two critical end-to-end test issues remain: the home-list locator cannot resolve because its testID is not rendered, and the navigation wait uses an unsupported detached state.
2 open issues
What changed in this PR
This pull request improves mobile E2E reliability by waiting for navigation, scrolling, tab transitions, and alert dismissal to settle before subsequent gestures, while limiting the Issue #1050 back-gesture checks to supported iOS versions.
Changes:
- Adds an iOS-version hint and skips unsupported back-gesture cases.
- Adds retry and settlement handling for example navigation and tab selection.
- Waits for native alert dismissal before continuing page-selection assertions.
| File | Description |
|---|---|
| example/src/gh-issues/Issue1050BackGestureRepro.tsx | Displays whether the iOS 26 content-pop behavior is available. |
| e2e/tests/tab-view-inside-scroll-view.e2e.ts | Retries the first-tab tap if scrolling has not settled. |
| e2e/tests/support/app.ts | Attempts to wait for the home screen transition to finish before continuing after navigation. |
| e2e/tests/on-page-selected.e2e.ts | Waits for the native alert to disappear after dismissal. |
| e2e/tests/issues/issue-1050-back-gesture.e2e.ts | Skips mid-screen back-gesture cases on iOS versions that do not support the required behavior. |
Review effort: Lite
🟢 e2e: 66 passedAll 66 tests in 26 files
Tested by e2e 0.23.1 · 7m 55s · android · run artifacts |
🟢 e2e: 3 flaky, 47 passed
|
| Test | Time | |
|---|---|---|
| tests/issues/issue-1050-back-gesture.e2e.ts · 1 flaky, 7 passed | 3m 1s | |
| back gesture over the pager › in LTR › a back swipe on the first page pops the screen (1 failed attempt first) | 19.3s | |
| 🟢 | back gesture over the pager › in LTR › a back swipe on a later page goes to the previous page | 14.7s |
| 🟢 | back gesture over the pager › in LTR › a forward swipe on the first page still goes to the next page | 15.7s |
| 🟢 | back gesture over the pager › in RTL › a back swipe on the first page pops the screen | 35.0s |
| 🟢 | back gesture over the pager › in RTL › a back swipe on a later page goes to the previous page | 35.4s |
| 🟢 | back gesture over the pager › in RTL › a forward swipe on the first page still goes to the next page | 31.7s |
| 🟢 | back gesture over a pager in a nested stack › a back swipe on the first page pops the outer stack | 13.8s |
| 🟢 | back gesture over a pager in a nested stack › a forward swipe on the first page still goes to the next page | 15.4s |
| tests/issues/issue-1154-page-change-focus.e2e.ts · 1 flaky, 13 passed | 6m 44s | |
| 🟢 | leaving a page with setPage blurs its input | 27.3s |
| setPage with an input focused lands on the target page (1 failed attempt first) | 38.3s | |
| 🟢 | a setPage two pages away lands on the far page | 24.6s |
| 🟢 | a setPage repeated during the slide changes nothing | 23.3s |
| 🟢 | leaving a page with a swipe blurs its input | 34.4s |
| 🟢 | an input focused on the new page keeps focus | 30.3s |
| 🟢 | a swipe keeps the focus the new page takes from onPageSelected | 31.2s |
| 🟢 | a setPage that interrupts another lands on the page asked for last | 25.4s |
| 🟢 | a setPage back to the page a slide is passing lands there | 19.2s |
| 🟢 | a setPage that interrupts another still lands on the later page | 20.0s |
| 🟢 | a setPage redirected once the focus has landed blurs it | 27.5s |
| 🟢 | two setPage calls that cancel out land on the first page | 28.6s |
| 🟢 | right to left › leaving a page with a swipe blurs its input | 51.5s |
| 🟢 | a page that grows with the keyboard still lands on the target page | 22.8s |
| tests/tab-view-inside-scroll-view.e2e.ts · 1 flaky | 24.7s | |
| TabView inside a ScrollView swipes tabs and scrolls the page (1 failed attempt first) | 24.7s | |
| 🟢 | tests/basic-pager.e2e.ts · 3 passed | 2m 35s |
| 🟢 | basic pager › in LTR › pages horizontally | 57.8s |
| 🟢 | basic pager › in LTR › pages vertically | 36.9s |
| 🟢 | basic pager › in RTL › pages horizontally with the reversed gesture | 1m 0s |
| 🟢 | tests/issues/issue-1083-modal-set-page.e2e.ts · 1 passed | 20.8s |
| 🟢 | setPage called behind a native-stack modal lands on the requested page | 20.8s |
| 🟢 | tests/issues/issue-1096-keyboard-shrink.e2e.ts · 1 passed | 26.3s |
| 🟢 | keyboard avoidance does not shrink the page under the keyboard | 26.3s |
| 🟢 | tests/issues/issue-1098-nested-pager.e2e.ts · 1 passed | 19.0s |
| 🟢 | outer pager stays responsive after its page count changes around a nested pager | 19.0s |
| 🟢 | tests/issues/issue-1142-search-bar-inset.e2e.ts · 1 passed | 30.1s |
| 🟢 | FlatList inside the pager gets the search bar safe-area insets | 30.1s |
| 🟢 | tests/issues/issue-1230-pager-between-pages.e2e.ts · 1 passed | 22.3s |
| 🟢 | a pager scrolled to a focused field still lands on the page asked for | 22.3s |
| 🟢 | tests/issues/pr-1194-remount-initial-page.e2e.ts · 1 passed | 27.0s |
| 🟢 | a pager remounted after its screen was covered starts on its own initialPage | 27.0s |
| 🟢 | tests/keyboard-dismiss-mode.e2e.ts · 3 passed | 1m 2s |
| 🟢 | on-drag: dragging the pager blurs the input | 21.9s |
| 🟢 | on-drag: setPage keeps the input focused | 19.0s |
| 🟢 | none: dragging the pager keeps the input focused | 21.0s |
| 🟢 | tests/lazy-pager-view.e2e.ts · 4 passed | 1m 14s |
| 🟢 | setPage mounts the target and its neighbours only | 16.0s |
| 🟢 | swiping mounts the next neighbour | 18.0s |
| 🟢 | preload distance 0 mounts only the pages visited | 19.8s |
| 🟢 | a visited page keeps its scroll position | 20.1s |
| 🟢 | tests/material-top-bar.e2e.ts · 1 passed | 21.0s |
| 🟢 | material top tabs survive a native-stack push and pop | 21.0s |
| 🟢 | tests/native-driver-events.e2e.ts · 2 passed | 29.3s |
| 🟢 | native driver events › setPage through the Animated ref drives the native value | 16.7s |
| 🟢 | native driver events › a swipe drives the native value | 12.6s |
| 🟢 | tests/nested-pager-view.e2e.ts · 1 passed | 18.8s |
| 🟢 | nested horizontal and vertical pagers scroll independently | 18.8s |
| 🟢 | tests/on-page-selected.e2e.ts · 1 passed | 24.1s |
| 🟢 | onPageSelected fires an alert for every page change | 24.1s |
| 🟢 | tests/scrollable-pager-view.e2e.ts · 1 passed | 29.9s |
| 🟢 | pager inside a ScrollView keeps its page across vertical scrolls | 29.9s |
| 🟢 | tests/set-page-animation.e2e.ts · 4 passed | 2m 2s |
| 🟢 | ltr › direct setPage selects only the target page (ltr) | 15.5s |
| 🟢 | rtl › direct setPage selects only the target page (rtl) | 1m 19s |
| 🟢 | the page next to the target is selectable after a direct setPage | 14.9s |
| 🟢 | scroll setPage passes the pages in between, direct setPage does not | 12.6s |
| 🟢 | tests/smoke.e2e.ts · 1 passed | 17.3s |
| 🟢 | horizontal pager pages with the panel buttons | 17.3s |
Tested by e2e 0.23.0 · 25m 23s · ios · run artifacts
214bb86 to
1157c83
Compare
Apex Sentinel · ✅ Approve · review of
|
| Finding | Dismissed by | |
|---|---|---|
| 🟠 | openExample waits on the undocumented state 'detached', so every test that opens an example fails | @krozniata |
To raise one again, reply @apex-sentinel-staging note ... in its thread. It stays dismissed only if Sentinel's re-check withdraws it.
1 finding below minor hidden (user_settings.min_severity).
Reviewed with this repository's own Sentinel configuration (979305794be0).
💬 Talking to Sentinel
In a finding's thread, reply with:
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 1157c83. The verdict and the full list are in the summary comment.
1157c83 to
d624c2f
Compare
🟢 e2e ios-spm: 51 passedAll 51 tests in 20 files
Tested by e2e 0.23.1 · 9m 6s · ios · run artifacts |
🟢 e2e ios: 51 passedAll 51 tests in 20 files
Tested by e2e 0.23.1 · 11m 53s · ios · run artifacts |
There was a problem hiding this comment.
Apex Sentinel: 1 finding moved to a new line on d624c2f. The verdict and the full list are in the summary comment.

Summary
Test Plan
What's required for testing (prerequisites)?
What are the steps to reproduce (after prerequisites)?
Compatibility
Checklist
README.md