-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Can't access to elements using by role React native testing library due to a lack of accesibility attribute #2613
Comments
@mfrfinbox the repro scenario is missing Issue TLDR: Tamagui in some cases sets
Full output: callstack/react-native-testing-library#1566 (comment) From my experiments, and hence how RNTL handles accessibility role, having |
I've update the repro scenario and added the debug output, additionally here's a picture of the issue; As we can see in the debug output since accesible attribute is not present it will not find the button (and all other elements that have accesibility role and not accesible attribute out of the box) I hipe that makes sence and please let me know if you need more info |
Current Behavior
When trying to test my components using RNTL and getByRole "button" I get an error since Tamagui implementation it's just a View under the hood (As far as I could figure out).
Expected Behavior
It will be nice to have accesibility=true for Button and elements that provide accesibilityRole for having a good and more standarized test creation experience.
Tamagui Version
Platform (Web, iOS, Android)
Reproduction
System Info
debug output
The text was updated successfully, but these errors were encountered: