- lowered espresso version

Took 12 minutes
This commit is contained in:
2023-03-15 22:53:58 +00:00
parent aa8798281c
commit dd0d2c431d
3 changed files with 5 additions and 9 deletions

View File

@@ -113,7 +113,7 @@ dependencies {
/ * Android Espresso */
def testJunitVersion = "1.1.5"
def testRunnerVersion = "1.5.2"
def espressoVersion = "3.5.0"
def espressoVersion = "3.4.0"
androidTestImplementation "androidx.test.ext:junit:$testJunitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
androidTestImplementation "androidx.test.espresso.idling:idling-concurrent:$espressoVersion"

View File

@@ -49,7 +49,7 @@ open class BaseUiTest<T : BaseActivity<*>>(
fun waitFor(delay: Long) {
onView(isRoot()).perform(object : ViewAction {
override fun getConstraints(): Matcher<View> = isRoot()
override fun getDescription(): String = "wait for $delay milliseconds"
override fun getDescription(): String? = "wait for $delay milliseconds"
override fun perform(uiController: UiController, v: View?) {
uiController.loopMainThreadForAtLeast(delay)
}