File tree Expand file tree Collapse file tree
app/src/androidTest/kotlin/com/vrem/wifianalyzer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,24 +28,16 @@ import org.junit.Assert.assertEquals
2828
2929internal class ThemeInstrumentedTest : Runnable {
3030 override fun run () {
31- verifyThemeSettings()
32-
3331 listOf (
34- " Dark" to AppCompatDelegate .MODE_NIGHT_YES ,
3532 " Light" to AppCompatDelegate .MODE_NIGHT_NO ,
3633 " System" to AppCompatDelegate .MODE_NIGHT_FOLLOW_SYSTEM ,
3734 " Black" to AppCompatDelegate .MODE_NIGHT_YES ,
35+ " Dark" to AppCompatDelegate .MODE_NIGHT_YES ,
3836 ).forEach { (themeName, expectedNightMode) ->
3937 changeThemeAndVerify(themeName, expectedNightMode)
4038 }
4139 }
4240
43- private fun verifyThemeSettings () {
44- selectMenuItem(R .id.nav_drawer_settings, " Settings" )
45- scrollToAndVerify(" Theme" )
46- pressBack()
47- }
48-
4941 private fun changeThemeAndVerify (
5042 themeName : String ,
5143 expectedNightMode : Int ,
You can’t perform that action at this time.
0 commit comments