-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat: add support for testID #179
Conversation
🦋 Changeset detectedLatest commit: 0228809 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
There was a problem hiding this 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!
packages/react-native-bottom-tabs/android/src/main/java/com/rcttabview/RCTTabView.kt
Outdated
Show resolved
Hide resolved
packages/react-native-bottom-tabs/android/src/main/java/com/rcttabview/RCTTabView.kt
Outdated
Show resolved
Hide resolved
39c8ecf
to
2fa9c5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are getting closer!
Looks like you are missing new architecture implementation:
- Pass testID here:
https://github.com/okwasniewski/react-native-bottom-tabs/blob/d43f39de757403492c105a417272c15a674dd429/packages/react-native-bottom-tabs/ios/Fabric/RCTTabViewComponentView.mm#L199C5-L204C62 - Pass testID to the compare function:
https://github.com/okwasniewski/react-native-bottom-tabs/blob/d43f39de757403492c105a417272c15a674dd429/packages/react-native-bottom-tabs/ios/Fabric/RCTTabViewComponentView.mm#L176
b69ab92
to
dcf07a1
Compare
Fixed and tested on new arch iOS and it works correctly |
dcf07a1
to
13ffdd5
Compare
There was a problem hiding this 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!
PR Description
This PR adds support for
testID
which normal RNView
has. So now it's possible to use E2E frameworks like Detox to click on tab item bytestID
.How to test?
Screenshots