summaryrefslogtreecommitdiffhomepage
path: root/android/app/src/androidTest
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2023-10-02 16:35:34 +0200
committerAlbin <albin@mullvad.net>2023-10-02 16:35:34 +0200
commitbb3737bd8fa8daadac80de9b77efc38b9a1772ca (patch)
tree774ca9099edc490aa4af9a0b641bed2dc308f88f /android/app/src/androidTest
parentc2183ff16c818f3062045ca05d6e71213605861e (diff)
parent54a8e7178e255d276007260e418ae9d32966af36 (diff)
downloadmullvadvpn-bb3737bd8fa8daadac80de9b77efc38b9a1772ca.tar.xz
mullvadvpn-bb3737bd8fa8daadac80de9b77efc38b9a1772ca.zip
Merge branch 'add-konsist-tests-droid-380'
Diffstat (limited to 'android/app/src/androidTest')
-rw-r--r--android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreenTest.kt10
1 files changed, 7 insertions, 3 deletions
diff --git a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreenTest.kt b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreenTest.kt
index 4844177b45..106d960d1f 100644
--- a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreenTest.kt
+++ b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreenTest.kt
@@ -82,9 +82,13 @@ class SelectLocationScreenTest {
uiState =
SelectLocationUiState.ShowData(
countries =
- DUMMY_RELAY_COUNTRIES.apply {
- this[0].expanded = true
- this[0].cities[0].expanded = true
+ DUMMY_RELAY_COUNTRIES.let {
+ val cities = it[0].cities.toMutableList()
+ val city = cities.removeAt(0)
+ cities.add(0, city.copy(expanded = true))
+ it.toMutableList()[0] =
+ it[0].copy(expanded = true, cities = cities.toList())
+ it
},
selectedRelay = DUMMY_RELAY_COUNTRIES[0].cities[0].relays[0]
),