Skip to content

test(e2e): drop tests that other tests already cover - #1259

Merged
krozniata merged 1 commit into
perf/e2e-reset-linkfrom
perf/e2e-trim-redundant
Nov 18, 2026
Merged

krozniata merged 1 commit into
perf/e2e-reset-linkfrom
perf/e2e-trim-redundant

Conversation

@krozniata

Copy link
Copy Markdown
Member

No description provided.

@krozniata
krozniata added this pull request to stack #1260 November 18, 2026 09:39
@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 20166e2

1 finding(s): 1 minor.

🟡 Minor (1)

Where Finding
e2e/tests/basic-pager.e2e.ts:36 RTL test drops the only panel-control coverage with pages added/removed

Reviewed with this repository's own Sentinel configuration (9ed912f7fb58).

💬 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.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apex Sentinel: 1 new finding on 20166e2. The verdict and the full list are in the summary comment.

await openBasicPager(device, app, screen, 'horizontal', 'rtl');
await verifySwipeToNextPage(screen, 'horizontal', 'left');
await verifyControls(screen);
await expectActivePage(screen, 1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Minor · RTL test drops the only panel-control coverage with pages added/removed

After this change, no e2e test drives the navigation panel controls in RTL because verifyControls now runs only in the LTR horizontal test, leaving no coverage of setPage after page count changes in RTL. The iOS setPage handler rewrites the index as children.count - 1 - page, so the direction inversion makes the removed run non-redundant despite the comment claiming identical behavior.

Suggested change
await expectActivePage(screen, 1);
await openBasicPager(device, app, screen, 'horizontal', 'rtl');
await verifySwipeToNextPage(screen, 'horizontal', 'left');
await verifyControls(screen);
Details

Also raised here

Also raised at this location by persona senior-developer: RTL programmatic setPage loses its only e2e coverage — After this change no e2e test calls setPage (the navigation-panel buttons) in RTL or in vertical: the RTL and vertical basic-pager tests now stop at expectActivePage(screen, 1), so verifyControls — the only driver of next/prev/start/last/add/remove-page — runs once, in LTR horizontal. A regression in the RTL setPage mapping, which goes through direction-specific native code (ComposePagerView.setLayoutDirection and its isRtlHorizontal branch on Android, PagerViewProvider.layoutDirection on iOS), would now pass CI while swipes in RTL are still checked. The new comment asserts the buttons behave "the same in every orientation and direction", but nothing — no type, test or shared constant — enforces that; the justification is an assumption about native behaviour, not an invariant, and it is exactly the direction-dependent path the test used to exercise. Keeping verifyControls in the RTL block costs one test's runtime and keeps that path covered.

persona: senior-developer, javascript

Useful? Reply @apex-sentinel-staging like, or @apex-sentinel-staging dislike <why> if it is not.

Reply @apex-sentinel-staging note ... to add context, or @apex-sentinel-staging pivot ... if it is wrong — I will re-check the cited code.

@github-actions

Copy link
Copy Markdown

🟢 e2e: 65 passed

All 65 tests in 25 files
Test Time
🟢 tests/basic-pager.e2e.ts · 3 passed 38.1s
🟢 basic pager › in LTR › pages horizontally 22.2s
🟢 basic pager › in LTR › pages vertically 2.7s
🟢 basic pager › in RTL › pages horizontally with the reversed gesture 13.1s
🟢 tests/issues/issue-1083-modal-set-page.e2e.ts · 1 passed 15.4s
🟢 setPage called behind a native-stack modal lands on the requested page 15.4s
🟢 tests/issues/issue-1098-nested-pager.e2e.ts · 1 passed 3.8s
🟢 outer pager stays responsive after its page count changes around a nested pager 3.8s
🟢 tests/issues/issue-1154-page-change-focus.e2e.ts · 7 passed 23.4s
🟢 leaving a page with setPage blurs its input 4.5s
🟢 setPage with an input focused lands on the target page 3.4s
🟢 leaving a page with a swipe blurs its input 1.7s
🟢 an input focused on the new page keeps focus 3.5s
🟢 an input focused on the new page keeps focus going back 4.7s
🟢 a swipe keeps the focus the new page takes from onPageSelected 3.2s
🟢 setPage keeps the focus the new page takes from onPageSelected 2.4s
🟢 tests/issues/issue-1156-nested-horizontal-scroll.e2e.ts · 3 passed 5.5s
🟢 a horizontal ScrollView in a page scrolls instead of the pager 1.9s
🟢 the pager takes the swipe once the ScrollView is at its edge 2.3s
🟢 a swipe outside the ScrollView changes the page 1.3s
🟢 tests/issues/issue-1196-set-page-after-add.e2e.ts · 6 passed 17.6s
🟢 setPageWithoutAnimation selects a page added in the same commit 1.6s
🟢 setPage animates to a page added in the same commit 1.8s
🟢 setPage from useEffect animates to a page added in the same commit 1.9s
🟢 setPageWithoutAnimation selects a page added to an empty pager in the same commit 2.3s
🟢 an index that is not there yet is ignored, not applied later 4.0s
🟢 pages that come back report the page the pager lands on once 6.0s
🟢 tests/issues/issue-1199-scroll-state.e2e.ts · 2 passed 3.2s
🟢 setPage reports settling, then idle once the page has stopped 2.0s
🟢 a swipe reports settling when the finger lifts, then idle once the page has stopped 1.3s
🟢 tests/issues/issue-1205-diagonal-swipe.e2e.ts · 2 passed 3.3s
🟢 a slanted, mostly vertical drag scrolls the list 1.7s
🟢 a slanted, mostly horizontal drag changes the page 1.6s
🟢 tests/issues/issue-1229-text-input-cursor.e2e.ts · 5 passed 10.5s
🟢 a tap that moves places the cursor in the input above the pager 1.8s
🟢 a tap that moves places the cursor in a single-line input on a page 1.8s
🟢 a tap that moves places the cursor in a single-line input on a page with scrolling disabled 2.6s
🟢 a tap that moves places the cursor in a multiline input on a page 1.8s
🟢 a tap that moves places the cursor in a multiline input on a page with scrolling disabled 2.5s
🟢 tests/issues/issue-1248-clipped-text-scroll.e2e.ts · 2 passed 3.7s
🟢 an upward drag over clipped text scrolls the list 1.4s
🟢 a nested vertical list keeps its own drag 2.4s
🟢 tests/issues/issue-1250-page-selected-timing.e2e.ts · 2 passed 3.3s
🟢 setPage reports the selected page before it starts moving 1.9s
🟢 a flick reports the selected page when the finger lifts 1.4s
🟢 tests/issues/issue-219-empty-pager.e2e.ts · 2 passed 6.3s
🟢 a pager that mounts empty shows its pages when they arrive and come back 4.0s
🟢 setPage works as soon as pages arrive in a pager that mounted empty 2.3s
🟢 tests/issues/issue-424-swipe-cancels-press.e2e.ts · 3 passed 8.9s
🟢 a tap on a button in a page presses it 1.3s
🟢 a swipe that starts on a button in a page cancels its touch 1.4s
🟢 a swipe while the JS thread is busy does not press the button 6.3s
🟢 tests/issues/issue-965-pages-before-current.e2e.ts · 6 passed 11.4s
🟢 inserting a page before the current one keeps it visible 1.7s
🟢 inserting a page at the current index keeps the current page 1.7s
🟢 removing a page before the current one keeps it visible 1.7s
🟢 removing pages up to the current index keeps it visible 1.7s
🟢 moving the current page keeps it visible 1.8s
🟢 moving a page next to the current one keeps it rendered 2.8s
🟢 tests/issues/pr-1194-remount-initial-page.e2e.ts · 1 passed 4.1s
🟢 a pager remounted after its screen was covered starts on its own initialPage 4.1s
🟢 tests/issues/pr-1241-switch-state-restore.e2e.ts · 1 passed 4.3s
🟢 a page that comes back keeps the switch value React set while it was away 4.3s
🟢 tests/keyboard-dismiss-mode.e2e.ts · 3 passed 7.1s
🟢 on-drag: dragging the pager blurs the input 2.3s
🟢 on-drag: setPage keeps the input focused 2.2s
🟢 none: dragging the pager keeps the input focused 2.6s
🟢 tests/lazy-pager-view.e2e.ts · 4 passed 13.4s
🟢 setPage mounts the target and its neighbours only 2.7s
🟢 swiping mounts the next neighbour 2.5s
🟢 preload distance 0 mounts only the pages visited 3.0s
🟢 a visited page keeps its scroll position 5.1s
🟢 tests/material-top-bar.e2e.ts · 1 passed 6.5s
🟢 material top tabs survive a native-stack push and pop 6.5s
🟢 tests/memo-pages.e2e.ts · 1 passed 3.5s
🟢 memoized pages do not re-render with the pager 3.5s
🟢 tests/native-driver-events.e2e.ts · 2 passed 4.0s
🟢 native driver events › setPage through the Animated ref drives the native value 2.6s
🟢 native driver events › a swipe drives the native value 1.4s
🟢 tests/nested-pager-view.e2e.ts · 1 passed 5.2s
🟢 nested horizontal and vertical pagers scroll independently 5.2s
🟢 tests/scrollable-pager-view.e2e.ts · 1 passed 10.6s
🟢 pager inside a ScrollView keeps its page across vertical scrolls 10.6s
🟢 tests/set-page-animation.e2e.ts · 4 passed 28.7s
🟢 ltr › direct setPage selects only the target page (ltr) 3.1s
🟢 rtl › direct setPage selects only the target page (rtl) 11.3s
🟢 the page next to the target is selectable after a direct setPage 11.0s
🟢 scroll setPage passes the pages in between, direct setPage does not 3.2s
🟢 tests/tab-view-inside-scroll-view.e2e.ts · 1 passed 5.1s
🟢 TabView inside a ScrollView swipes tabs and scrolls the page 5.1s

Tested by e2e 0.23.1 · 4m 9s · android · run artifacts

@github-actions

Copy link
Copy Markdown

🟢 e2e ios-spm: 49 passed

All 49 tests in 18 files
Test Time
🟢 tests/basic-pager.e2e.ts · 3 passed 1m 6s
🟢 basic pager › in LTR › pages horizontally 40.2s
🟢 basic pager › in LTR › pages vertically 7.8s
🟢 basic pager › in RTL › pages horizontally with the reversed gesture 17.6s
🟢 tests/issues/issue-1050-back-gesture.e2e.ts · 8 passed 1m 1s
🟢 back gesture over the pager › in LTR › a back swipe on the first page pops the screen 18.7s
🟢 back gesture over the pager › in LTR › a back swipe on a later page goes to the previous page 4.2s
🟢 back gesture over the pager › in LTR › a forward swipe on the first page still goes to the next page 2.5s
🟢 back gesture over the pager › in RTL › a back swipe on the first page pops the screen 12.3s
🟢 back gesture over the pager › in RTL › a back swipe on a later page goes to the previous page 3.4s
🟢 back gesture over the pager › in RTL › a forward swipe on the first page still goes to the next page 3.0s
🟢 back gesture over a pager in a nested stack › a back swipe on the first page pops the outer stack 13.2s
🟢 back gesture over a pager in a nested stack › a forward swipe on the first page still goes to the next page 3.1s
🟢 tests/issues/issue-1083-modal-set-page.e2e.ts · 1 passed 6.4s
🟢 setPage called behind a native-stack modal lands on the requested page 6.4s
🟢 tests/issues/issue-1096-keyboard-shrink.e2e.ts · 1 passed 9.9s
🟢 keyboard avoidance does not shrink the page under the keyboard 9.9s
🟢 tests/issues/issue-1098-nested-pager.e2e.ts · 1 passed 5.3s
🟢 outer pager stays responsive after its page count changes around a nested pager 5.3s
🟢 tests/issues/issue-1142-search-bar-inset.e2e.ts · 1 passed 4.9s
🟢 FlatList inside the pager gets the search bar safe-area insets 4.9s
🟢 tests/issues/issue-1154-page-change-focus.e2e.ts · 14 passed 1m 47s
🟢 leaving a page with setPage blurs its input 4.9s
🟢 setPage with an input focused lands on the target page 4.9s
🟢 a setPage two pages away lands on the far page 4.8s
🟢 a setPage repeated during the slide changes nothing 5.6s
🟢 leaving a page with a swipe blurs its input 5.8s
🟢 an input focused on the new page keeps focus 7.9s
🟢 a swipe keeps the focus the new page takes from onPageSelected 9.0s
🟢 a setPage that interrupts another lands on the page asked for last 7.0s
🟢 a setPage back to the page a slide is passing lands there 4.8s
🟢 a setPage that interrupts another still lands on the later page 6.8s
🟢 a setPage redirected once the focus has landed blurs it 5.5s
🟢 two setPage calls that cancel out land on the first page 5.1s
🟢 right to left › leaving a page with a swipe blurs its input 16.0s
🟢 a page that grows with the keyboard still lands on the target page 18.6s
🟢 tests/issues/issue-1230-pager-between-pages.e2e.ts · 1 passed 3.2s
🟢 a pager scrolled to a focused field still lands on the page asked for 3.2s
🟢 tests/issues/pr-1194-remount-initial-page.e2e.ts · 1 passed 5.9s
🟢 a pager remounted after its screen was covered starts on its own initialPage 5.9s
🟢 tests/keyboard-dismiss-mode.e2e.ts · 3 passed 16.4s
🟢 on-drag: dragging the pager blurs the input 5.5s
🟢 on-drag: setPage keeps the input focused 5.4s
🟢 none: dragging the pager keeps the input focused 5.6s
🟢 tests/lazy-pager-view.e2e.ts · 4 passed 34.8s
🟢 setPage mounts the target and its neighbours only 7.4s
🟢 swiping mounts the next neighbour 8.6s
🟢 preload distance 0 mounts only the pages visited 7.4s
🟢 a visited page keeps its scroll position 11.5s
🟢 tests/material-top-bar.e2e.ts · 1 passed 10.8s
🟢 material top tabs survive a native-stack push and pop 10.8s
🟢 tests/memo-pages.e2e.ts · 1 passed 5.2s
🟢 memoized pages do not re-render with the pager 5.2s
🟢 tests/native-driver-events.e2e.ts · 2 passed 5.2s
🟢 native driver events › setPage through the Animated ref drives the native value 2.9s
🟢 native driver events › a swipe drives the native value 2.3s
🟢 tests/nested-pager-view.e2e.ts · 1 passed 9.0s
🟢 nested horizontal and vertical pagers scroll independently 9.0s
🟢 tests/scrollable-pager-view.e2e.ts · 1 passed 15.3s
🟢 pager inside a ScrollView keeps its page across vertical scrolls 15.3s
🟢 tests/set-page-animation.e2e.ts · 4 passed 35.0s
🟢 ltr › direct setPage selects only the target page (ltr) 3.9s
🟢 rtl › direct setPage selects only the target page (rtl) 13.8s
🟢 the page next to the target is selectable after a direct setPage 13.9s
🟢 scroll setPage passes the pages in between, direct setPage does not 3.4s
🟢 tests/tab-view-inside-scroll-view.e2e.ts · 1 passed 10.8s
🟢 TabView inside a ScrollView swipes tabs and scrolls the page 10.8s

Tested by e2e 0.23.1 · 6m 53s · ios · run artifacts

@github-actions

Copy link
Copy Markdown

🟢 e2e ios: 49 passed

All 49 tests in 18 files
Test Time
🟢 tests/basic-pager.e2e.ts · 3 passed 1m 16s
🟢 basic pager › in LTR › pages horizontally 45.6s
🟢 basic pager › in LTR › pages vertically 9.0s
🟢 basic pager › in RTL › pages horizontally with the reversed gesture 21.3s
🟢 tests/issues/issue-1050-back-gesture.e2e.ts · 8 passed 1m 10s
🟢 back gesture over the pager › in LTR › a back swipe on the first page pops the screen 15.3s
🟢 back gesture over the pager › in LTR › a back swipe on a later page goes to the previous page 4.7s
🟢 back gesture over the pager › in LTR › a forward swipe on the first page still goes to the next page 2.8s
🟢 back gesture over the pager › in RTL › a back swipe on the first page pops the screen 17.2s
🟢 back gesture over the pager › in RTL › a back swipe on a later page goes to the previous page 5.6s
🟢 back gesture over the pager › in RTL › a forward swipe on the first page still goes to the next page 3.4s
🟢 back gesture over a pager in a nested stack › a back swipe on the first page pops the outer stack 16.4s
🟢 back gesture over a pager in a nested stack › a forward swipe on the first page still goes to the next page 4.4s
🟢 tests/issues/issue-1083-modal-set-page.e2e.ts · 1 passed 8.4s
🟢 setPage called behind a native-stack modal lands on the requested page 8.4s
🟢 tests/issues/issue-1096-keyboard-shrink.e2e.ts · 1 passed 13.0s
🟢 keyboard avoidance does not shrink the page under the keyboard 13.0s
🟢 tests/issues/issue-1098-nested-pager.e2e.ts · 1 passed 7.8s
🟢 outer pager stays responsive after its page count changes around a nested pager 7.8s
🟢 tests/issues/issue-1142-search-bar-inset.e2e.ts · 1 passed 8.0s
🟢 FlatList inside the pager gets the search bar safe-area insets 8.0s
🟢 tests/issues/issue-1154-page-change-focus.e2e.ts · 14 passed 2m 0s
🟢 leaving a page with setPage blurs its input 8.0s
🟢 setPage with an input focused lands on the target page 7.2s
🟢 a setPage two pages away lands on the far page 6.5s
🟢 a setPage repeated during the slide changes nothing 6.5s
🟢 leaving a page with a swipe blurs its input 6.4s
🟢 an input focused on the new page keeps focus 8.9s
🟢 a swipe keeps the focus the new page takes from onPageSelected 8.7s
🟢 a setPage that interrupts another lands on the page asked for last 6.2s
🟢 a setPage back to the page a slide is passing lands there 4.2s
🟢 a setPage that interrupts another still lands on the later page 7.1s
🟢 a setPage redirected once the focus has landed blurs it 6.8s
🟢 two setPage calls that cancel out land on the first page 6.4s
🟢 right to left › leaving a page with a swipe blurs its input 18.5s
🟢 a page that grows with the keyboard still lands on the target page 19.1s
🟢 tests/issues/issue-1230-pager-between-pages.e2e.ts · 1 passed 3.0s
🟢 a pager scrolled to a focused field still lands on the page asked for 3.0s
🟢 tests/issues/pr-1194-remount-initial-page.e2e.ts · 1 passed 6.1s
🟢 a pager remounted after its screen was covered starts on its own initialPage 6.1s
🟢 tests/keyboard-dismiss-mode.e2e.ts · 3 passed 15.7s
🟢 on-drag: dragging the pager blurs the input 5.1s
🟢 on-drag: setPage keeps the input focused 4.8s
🟢 none: dragging the pager keeps the input focused 5.8s
🟢 tests/lazy-pager-view.e2e.ts · 4 passed 39.6s
🟢 setPage mounts the target and its neighbours only 8.9s
🟢 swiping mounts the next neighbour 9.3s
🟢 preload distance 0 mounts only the pages visited 9.5s
🟢 a visited page keeps its scroll position 11.9s
🟢 tests/material-top-bar.e2e.ts · 1 passed 11.7s
🟢 material top tabs survive a native-stack push and pop 11.7s
🟢 tests/memo-pages.e2e.ts · 1 passed 5.7s
🟢 memoized pages do not re-render with the pager 5.7s
🟢 tests/native-driver-events.e2e.ts · 2 passed 7.7s
🟢 native driver events › setPage through the Animated ref drives the native value 4.2s
🟢 native driver events › a swipe drives the native value 3.5s
🟢 tests/nested-pager-view.e2e.ts · 1 passed 11.6s
🟢 nested horizontal and vertical pagers scroll independently 11.6s
🟢 tests/scrollable-pager-view.e2e.ts · 1 passed 19.4s
🟢 pager inside a ScrollView keeps its page across vertical scrolls 19.4s
🟢 tests/set-page-animation.e2e.ts · 4 passed 41.2s
🟢 ltr › direct setPage selects only the target page (ltr) 6.3s
🟢 rtl › direct setPage selects only the target page (rtl) 16.6s
🟢 the page next to the target is selectable after a direct setPage 14.1s
🟢 scroll setPage passes the pages in between, direct setPage does not 4.1s
🟢 tests/tab-view-inside-scroll-view.e2e.ts · 1 passed 11.9s
🟢 TabView inside a ScrollView swipes tabs and scrolls the page 11.9s

Tested by e2e 0.23.1 · 7m 58s · ios · run artifacts

@krozniata
krozniata merged commit 3a44ca5 into main Nov 18, 2026
13 checks passed
@krozniata
krozniata deleted the perf/e2e-trim-redundant branch November 18, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant