diff options
| author | Albin <albin@mullvad.net> | 2023-10-02 16:35:34 +0200 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2023-10-02 16:35:34 +0200 |
| commit | bb3737bd8fa8daadac80de9b77efc38b9a1772ca (patch) | |
| tree | 774ca9099edc490aa4af9a0b641bed2dc308f88f /android/app/src/androidTest | |
| parent | c2183ff16c818f3062045ca05d6e71213605861e (diff) | |
| parent | 54a8e7178e255d276007260e418ae9d32966af36 (diff) | |
| download | mullvadvpn-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.kt | 10 |
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] ), |
