mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 03:16:02 +03:00
Fix sanity test after #5773
This commit is contained in:
parent
2951077979
commit
3ed6a90fde
3 changed files with 7 additions and 5 deletions
|
@ -72,7 +72,6 @@ class UiAllScreensSanityTest {
|
|||
notifications { crawl() }
|
||||
preferences { crawl() }
|
||||
voiceAndVideo()
|
||||
ignoredUsers()
|
||||
securityAndPrivacy { crawl() }
|
||||
labs()
|
||||
advancedSettings { crawl() }
|
||||
|
|
|
@ -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()) }
|
||||
}
|
||||
|
|
|
@ -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() }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue