AdevintaSpain / AdevintaSpain/Barista

Missing a way to verify/click on AutoCompleteTextView suggestions

Open
#203 1 comment 0 reactions 0 assignees View on GitHub
good first issue help wanted
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.