Merge pull request #4071 from vector-im/tools/adm/connected_tests

Fixing no tests found when running vector:connectedAndroidTest
This commit is contained in:
Benoit Marty 2021-09-24 09:53:04 +02:00 committed by GitHub
commit 1b262a4df8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 2 deletions

View file

@ -60,6 +60,7 @@ ext.libs = [
'pagingRuntimeKtx' : "androidx.paging:paging-runtime-ktx:2.1.2",
'coreTesting' : "androidx.arch.core:core-testing:2.1.0",
'testCore' : "androidx.test:core:$androidxTest",
'orchestrator' : "androidx.test:orchestrator:$androidxTest",
'testRunner' : "androidx.test:runner:$androidxTest",
'testRules' : "androidx.test:rules:$androidxTest",
'espressoCore' : "androidx.test.espresso:espresso-core:$espresso",

View file

@ -179,5 +179,5 @@ dependencies {
// Plant Timber tree for test
androidTestImplementation libs.tests.timberJunitRule
androidTestUtil 'androidx.test:orchestrator:1.4.0'
androidTestUtil libs.androidx.orchestrator
}

View file

@ -511,4 +511,5 @@ dependencies {
androidTestImplementation('com.adevinta.android:barista:4.1.0') {
exclude group: 'org.jetbrains.kotlin'
}
androidTestUtil libs.androidx.orchestrator
}

View file

@ -283,6 +283,7 @@ class UiAllScreensSanityTest {
clickListItem(R.id.matrixProfileRecyclerView, 9)
// File tab
clickOn(R.string.uploads_files_title)
sleep(1000)
pressBack()
assertDisplayed(R.id.roomProfileAvatarView)
@ -334,6 +335,7 @@ class UiAllScreensSanityTest {
private fun navigateToRoomPeople() {
// Open first user
clickListItem(R.id.roomSettingsRecyclerView, 1)
sleep(1000)
assertDisplayed(R.id.memberProfilePowerLevelView)
// Verification
@ -342,8 +344,9 @@ class UiAllScreensSanityTest {
// Role
clickListItem(R.id.matrixProfileRecyclerView, 3)
sleep(1000)
clickDialogNegativeButton()
sleep(1000)
clickBack()
}