Created
February 18, 2022 14:32
-
-
Save gunesmes/87a9b5548c26276d0678c026fac9a355 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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())) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?