mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
adding helper to fetch text from resources
This commit is contained in:
parent
474e2aadbe
commit
2a66efb733
1 changed files with 4 additions and 0 deletions
|
@ -54,6 +54,10 @@ object EspressoHelper {
|
|||
}
|
||||
}
|
||||
|
||||
fun getString(@StringRes id: Int): String {
|
||||
return EspressoHelper.getCurrentActivity()!!.resources.getString(id)
|
||||
}
|
||||
|
||||
fun waitForView(viewMatcher: Matcher<View>, timeout: Long = 10_000, waitForDisplayed: Boolean = true): ViewAction {
|
||||
return object : ViewAction {
|
||||
override fun getConstraints(): Matcher<View> {
|
||||
|
|
Loading…
Reference in a new issue