-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Find element by text doesn't function with minimal project on latest version of RN and detox #572
Comments
Yeah, seems something to do with the text view elements not matching on RN 0.53.0. For an example assertion that worked fine on earlier RN (0.50.3) with Detox 7.1.0
we now get
Given this is looking up by accessibility ID, it looks like the |
Thanks guys, we'll look at this issue soon. |
Same problem. It does work when react-native is downgraded to 0.50. But this isn't an option for us as there are critical bug fixes between RN .50 and .53 Any ideas as to where problem is? what file? |
@kumarpatel Detox 7.1.0 is working fine on RN 0.52.3, so you don't have to go as far back as 0.50 to still use Detox. |
I guess something changed with RN 0.53.0 0.52.x should be fully supported, so stick to that for now. |
Fixed |
Great, thanks a lot @LeoNatan ! |
@LeoNatan thanks for the fix! |
Soon. There are still issues in CI with my fix, which I am working on right now. |
You are awesome, thank you so much!
|
Description
I have a very, very simple project set up with one file, using the detox getting started guide. While searching by element id, I have no problem finding the element and all tests pass.
However, the problem is that searching by text returns an error saying that the UI element could not be found. I am not using any extra libraries or toolkits at all, and I have tried to run the tests with both Jest and Mocha using detox test.
Please find very simple project attached:
Project
Main File
I ran the tests with loglevel set to verbose. The output was huge, however, so I attached it in a gist.
https://gist.github.com/Rob117/57defa8a9c166bba2e2199d194a62ee1
If there is any additional information I could provide to be useful, or something obvious that I am overlooking here, please let me know.
Thank you.
The text was updated successfully, but these errors were encountered: