Closed elyalvarado closed 4 years ago
We're seeing this behavior on RN 0.59.5 as well
I'm going to close this as it was a React Native issue and not a Detox one. This issue was introduced in RN 0.60.0 with the following commit:
And was fixed in RN 0.60.5 which includes the following PR: #25963
Anyone having one of the affected versions (0.60.0-0.60.4) can as a work-around conditionally add a comma at the end of the label to match if the platform is Android.
Describe the bug Finding any element by their accessibilityLabel using the
by.label
matcher is not working on Android when using React Native version .060.3To Reproduce
Provide the steps necessary to reproduce the issue. If you are seeing a regression, try to provide the last known version where the issue did not reproduce.
by.label
matcher on iOS fails on Android.Demo project reproducing the issue
Expected behavior Tests should work as in iOS and previous versions.
Environment (please complete the following information):
Device and Verbose Detox Logs Provide the device and "trace" Detox logs so we can understand what happened. You can obtain them by passing the loglevel param:
detox test --loglevel trace