Issue
In an Google Espresso test, I'm trying to click on the OK button of a DatePickerDialog.
But instead of validating my input, it just add a year and does not close the dialog.
It seems that the click is done on the "+" button of year's column. Is that an Espresso bug or am I missing something?
Here is my Espresso code (in Kotlin):
onView(allOf(iz(instanceOf(javaClass<Button>())), withText("OK"),
isDisplayed()) as Matcher<View>).perform(click())
Solution
After upgrading my testing device to 4.4.4, the bug has gone by itself: it was an Android < 4.4 bug T_T
Answered By - Geob-o-matic
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.