- 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

@@ -62,18 +62,14 @@ jobs:
- store_artifacts:
path: app/build/reports/androidTests/connected
destination: reports
# Then publish the artifacts of output!
- store_artifacts:
path: app/build/outputs
destination: outputs
# Then publish the artifacts of the Firebase emulator logs!
- run:
name: save firebase emulator logs
command: |
mkdir -p /tmp/firebase_logs
cp *.log /tmp/firebase_logs
mkdir -p tmp/firebase_logs
cp *.log tmp/firebase_logs
- store_artifacts:
path: /tmp/firebase_logs
path: tmp/firebase_logs
destination: logs
# Then publish the results of the Instrumentation tests!
- store_test_results:

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)
}