Espresso doesn't perform click on a Dialog for enabling GPS generated on this code:
rae.startResolutionForResult(
context,
Constants.GPS_REQUEST
)
I haven't created this dialog so is not part of my "screen" nor "app", it's generated by the system or request to solve the gps resolution.
This is my line of code to press it:
onView(withText("OK")).perform(click())
I know it detects it because if I set the word "OK" to lowercase it throws me an error but on uppercase looks like Espresso can't press on it and keeps waiting
I thought about performing a click on coordinates but that looks like a flakky test because of the height and width and might not be accurate at all (I'm saying it from ignorance)
Here's an image of the actual screen
Aucun commentaire:
Enregistrer un commentaire