-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
atIndex() seems to be broken on Android #498
Comments
iOS and Android native view hierarchies may not always be similar to each other, in fact, they are mostly different. Using BTW, iOS and Android actually have opposite order to their indexes... take a look at our matchers e2e test suite. |
@jukben I made a PR to fix the |
Thanks for your responses! I will do. 🙏 |
Description
atIndex()
don't work as intended on Android.Steps to Reproduce
This piece of code throws an error on Android, on iOS everything is OK. It seems to me that
atIndex
is ignored.Error: 'matches 0th view.' matches multiple views in the hierarchy.
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
detox build -c android.emu.release && detox test -c android.emu.release 2> stderr
Could be similar to #337 (or it might be a duplicate but this is NOT alert related as far I know.)
Anyway, thanks for this library! 💪 You did a great job. I'd love to hear some feedback from you, maybe I didn't understand the
atIndex
method properly.The text was updated successfully, but these errors were encountered: