Skip to content

feat: add support for testID #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Nodonisko
Copy link
Contributor

PR Description

This PR adds support for testID which normal RN View has. So now it's possible to use E2E frameworks like Detox to click on tab item by testID.

How to test?

Screenshots

Copy link

changeset-bot bot commented Dec 4, 2024

🦋 Changeset detected

Latest commit: 0228809

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
react-native-bottom-tabs Patch
@bottom-tabs/react-navigation Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Collaborator

@okwasniewski okwasniewski left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!

Copy link
Collaborator

@okwasniewski okwasniewski left a comment

Choose a reason for hiding this comment

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

@Nodonisko Nodonisko force-pushed the feat/add-test-id-support branch from b69ab92 to dcf07a1 Compare December 5, 2024 16:14
@Nodonisko
Copy link
Contributor Author

Nodonisko commented Dec 5, 2024

Fixed and tested on new arch iOS and it works correctly

@Nodonisko Nodonisko force-pushed the feat/add-test-id-support branch from dcf07a1 to 13ffdd5 Compare December 5, 2024 18:33
Copy link
Collaborator

@okwasniewski okwasniewski left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!

@okwasniewski okwasniewski merged commit 4771cfd into callstackincubator:main Dec 7, 2024
7 checks passed
@fredrikburmester
Copy link

fredrikburmester commented Apr 25, 2025

Hello, this does not seem to be working. I'm not seeing any Identifier in the Accessibility Inspector. Am I doing something wrong?

"expo": "~52.0.43",
"@bottom-tabs/react-navigation": "^0.9.0",
"react-native-bottom-tabs": "^0.9.0",

Screenshot 2025-04-25 at 10 42 02

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.

3 participants