mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-18 13:00:18 +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() }
|
notifications { crawl() }
|
||||||
preferences { crawl() }
|
preferences { crawl() }
|
||||||
voiceAndVideo()
|
voiceAndVideo()
|
||||||
ignoredUsers()
|
|
||||||
securityAndPrivacy { crawl() }
|
securityAndPrivacy { crawl() }
|
||||||
labs()
|
labs()
|
||||||
advancedSettings { crawl() }
|
advancedSettings { crawl() }
|
||||||
|
|
|
@ -44,10 +44,6 @@ class SettingsRobot {
|
||||||
clickOnAndGoBack(R.string.preference_voice_and_video) { block() }
|
clickOnAndGoBack(R.string.preference_voice_and_video) { block() }
|
||||||
}
|
}
|
||||||
|
|
||||||
fun ignoredUsers(block: () -> Unit = {}) {
|
|
||||||
clickOnAndGoBack(R.string.settings_ignored_users) { block() }
|
|
||||||
}
|
|
||||||
|
|
||||||
fun securityAndPrivacy(block: SettingsSecurityRobot.() -> Unit) {
|
fun securityAndPrivacy(block: SettingsSecurityRobot.() -> Unit) {
|
||||||
clickOnAndGoBack(R.string.settings_security_and_privacy) { block(SettingsSecurityRobot()) }
|
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 androidx.test.espresso.Espresso
|
||||||
import im.vector.app.R
|
import im.vector.app.R
|
||||||
|
import im.vector.app.clickOnAndGoBack
|
||||||
import im.vector.app.espresso.tools.clickOnPreference
|
import im.vector.app.espresso.tools.clickOnPreference
|
||||||
|
|
||||||
class SettingsSecurityRobot {
|
class SettingsSecurityRobot {
|
||||||
|
@ -36,5 +37,11 @@ class SettingsSecurityRobot {
|
||||||
|
|
||||||
clickOnPreference(R.string.settings_opt_in_of_analytics)
|
clickOnPreference(R.string.settings_opt_in_of_analytics)
|
||||||
Espresso.pressBack()
|
Espresso.pressBack()
|
||||||
|
|
||||||
|
ignoredUsers()
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun ignoredUsers(block: () -> Unit = {}) {
|
||||||
|
clickOnAndGoBack(R.string.settings_ignored_users) { block() }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue