Fix sanity test after #5773

This commit is contained in:
Benoit Marty 2022-04-21 21:08:28 +02:00
parent 2951077979
commit 3ed6a90fde
3 changed files with 7 additions and 5 deletions

View file

@ -72,7 +72,6 @@ class UiAllScreensSanityTest {
notifications { crawl() }
preferences { crawl() }
voiceAndVideo()
ignoredUsers()
securityAndPrivacy { crawl() }
labs()
advancedSettings { crawl() }

View file

@ -44,10 +44,6 @@ class SettingsRobot {
clickOnAndGoBack(R.string.preference_voice_and_video) { block() }
}
fun ignoredUsers(block: () -> Unit = {}) {
clickOnAndGoBack(R.string.settings_ignored_users) { block() }
}
fun securityAndPrivacy(block: SettingsSecurityRobot.() -> Unit) {
clickOnAndGoBack(R.string.settings_security_and_privacy) { block(SettingsSecurityRobot()) }
}

View file

@ -18,6 +18,7 @@ package im.vector.app.ui.robot.settings
import androidx.test.espresso.Espresso
import im.vector.app.R
import im.vector.app.clickOnAndGoBack
import im.vector.app.espresso.tools.clickOnPreference
class SettingsSecurityRobot {
@ -36,5 +37,11 @@ class SettingsSecurityRobot {
clickOnPreference(R.string.settings_opt_in_of_analytics)
Espresso.pressBack()
ignoredUsers()
}
private fun ignoredUsers(block: () -> Unit = {}) {
clickOnAndGoBack(R.string.settings_ignored_users) { block() }
}
}