AdevintaSpain / AdevintaSpain/Barista
Missing a way to verify/click on AutoCompleteTextView suggestions
- Dominant language
- Kotlin
- Stars
- 1.7k
- Forks
- 119
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for the great lib!
I'd like to verify the item is displayed in dropdown list when user types some text in AutoCompleteTextView. To do so in Espresso I can use the following approach:
```
onView(withText("Maine Coon"))
.inRoot(withDecorView(not(`is`(viewTestRule.activity.getWindow().getDecorView()))))
.check(matches(isDisplayed()));
```
and to click on the item from dropdown list:
```
onView(withText("Manx")).inRoot(withDecorView(not(`is`(viewTestRule.activity.getWindow().getDecorView()))))
.perform(click());
```
Do you think the library should provide similar functionality? Via separate API or using existing methods `assertDisplayed()` and `clickOn()`?
Contributor guide
Assessment
This issue has not been assessed yet.