Skip to content

Instantly share code, notes, and snippets.

@gunesmes
Created February 18, 2022 14:32
Show Gist options
  • Save gunesmes/87a9b5548c26276d0678c026fac9a355 to your computer and use it in GitHub Desktop.
Save gunesmes/87a9b5548c26276d0678c026fac9a355 to your computer and use it in GitHub Desktop.
package testrisk.dictionary.pages
import androidx.test.espresso.Espresso
import androidx.test.espresso.assertion.ViewAssertions
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import testrisk.dictionary.R
class DictionaryScreen : BaseScreen() {
private var recyclerViewSozluk = Espresso.onView(withId(R.id.recyclerView))
private var searchImage = Espresso.onView(withId(R.id.imageSearch))
fun validateDictionaryLoaded() {
searchImage.check(ViewAssertions.matches(isDisplayed()))
recyclerViewSozluk.check(ViewAssertions.matches(isDisplayed()))
}
}
@jbhntr861
Copy link

Hello I'm trying to use the line import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
And I'm getting an unresolved reference for reference espresso.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment