mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +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…
Add table
Reference in a new issue