Skip to content

chore(test): E2E test-tabs-prevent-native-selection#3928

Open
LKuchno wants to merge 10 commits intomainfrom
@lkuchno/e2e-test-tabs-prevent-native-selection
Open

chore(test): E2E test-tabs-prevent-native-selection#3928
LKuchno wants to merge 10 commits intomainfrom
@lkuchno/e2e-test-tabs-prevent-native-selection

Conversation

@LKuchno
Copy link
Copy Markdown
Collaborator

@LKuchno LKuchno commented Apr 23, 2026

Description

Adds an automated E2E test suite for the preventNativeSelection prop on TabsScreen, covering iPhone, Android phone, and the iOS More tab controller. Not covering iPad specific steps due to Detox limitations.

Closes: https://github.com/software-mansion/react-native-screens-labs/issues/1163

Changes

e2e/single-feature-tests/tabs/test-tabs-prevent-native-selection.e2e.ts

  • New Detox test suite with 6 it blocks covering most of manual scenario - without step 19 and iPad specific scenario

test-tabs-prevent-native-selection/index.tsx
Added testID to the container view, screen name label, prevention state label, and toggle button. Added testID to all six "Select X" navigation buttons. Added tabBarItemTestID to all six route configs so tab bar items are directly addressable by Detox.

test-tabs-prevent-native-selection/scenario.md
Updated E2E status from "ongoing research" to "partially automated" with notes on what is not automated (iPad resize interactions, repeated More tab re-selection). Corrected steps 9–11 in the "Multiple tabs" section - step 9 now explicitly navigates to the Fourth tab and toggles prevention there before tapping Third, matching actual test behavior. Renumbered all subsequent steps accordingly.

@LKuchno LKuchno requested a review from kkafar April 23, 2026 09:15
@LKuchno LKuchno assigned LKuchno and unassigned LKuchno Apr 23, 2026
@LKuchno LKuchno added area:tabs Issue related to bottom tabs type:chore A general maintenance task, that does not fall into other categories. type:e2e Actions related to e2e maintenance and development, especially automation. labels Apr 23, 2026
@LKuchno LKuchno marked this pull request as draft April 27, 2026 13:14
@LKuchno
Copy link
Copy Markdown
Collaborator Author

LKuchno commented Apr 27, 2026

Android tests are failing because toasts and the Tabs screen list are displayed 'under' the system navigation bar on older Android versions. This test is waiting for a fix or a workaround.

@LKuchno LKuchno marked this pull request as ready for review April 28, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tabs Issue related to bottom tabs type:chore A general maintenance task, that does not fall into other categories. type:e2e Actions related to e2e maintenance and development, especially automation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant