summaryrefslogtreecommitdiffhomepage
path: root/android/app/src/androidTest/kotlin
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-12-15 10:55:52 +0100
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2024-01-19 13:31:20 +0100
commit7efda2d553370be150a0ccc789f76ca3c68bf554 (patch)
tree85ccbf5c27ba0cf2d701c03c709e3b205a9850c1 /android/app/src/androidTest/kotlin
parent93eb40ea81019f4389c894ca30076b8fd4aafb90 (diff)
downloadmullvadvpn-7efda2d553370be150a0ccc789f76ca3c68bf554.tar.xz
mullvadvpn-7efda2d553370be150a0ccc789f76ca3c68bf554.zip
Fix tests
Diffstat (limited to 'android/app/src/androidTest/kotlin')
-rw-r--r--android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreenTest.kt33
1 files changed, 21 insertions, 12 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 fbc8b046fd..bb64adc8a6 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
@@ -9,6 +9,7 @@ import io.mockk.MockKAnnotations
import io.mockk.mockk
import io.mockk.verify
import net.mullvad.mullvadvpn.compose.setContentWithTheme
+import net.mullvad.mullvadvpn.compose.state.RelayListState
import net.mullvad.mullvadvpn.compose.state.SelectLocationUiState
import net.mullvad.mullvadvpn.compose.test.CIRCULAR_PROGRESS_INDICATOR
import net.mullvad.mullvadvpn.model.Constraint
@@ -54,9 +55,12 @@ class SelectLocationScreenTest {
setContentWithTheme {
SelectLocationScreen(
uiState =
- SelectLocationUiState.ShowData(
- countries = DUMMY_RELAY_COUNTRIES,
- selectedRelay = null,
+ SelectLocationUiState.Data(
+ relayListState =
+ RelayListState.RelayList(
+ countries = DUMMY_RELAY_COUNTRIES,
+ selectedRelay = null
+ ),
selectedOwnership = null,
selectedProvidersCount = 0,
searchTerm = ""
@@ -91,9 +95,12 @@ class SelectLocationScreenTest {
setContentWithTheme {
SelectLocationScreen(
uiState =
- SelectLocationUiState.ShowData(
- countries = updatedDummyList,
- selectedRelay = updatedDummyList[0].cities[0].relays[0],
+ SelectLocationUiState.Data(
+ relayListState =
+ RelayListState.RelayList(
+ countries = updatedDummyList,
+ selectedRelay = updatedDummyList[0].cities[0].relays[0]
+ ),
selectedOwnership = null,
selectedProvidersCount = 0,
searchTerm = ""
@@ -118,9 +125,12 @@ class SelectLocationScreenTest {
setContentWithTheme {
SelectLocationScreen(
uiState =
- SelectLocationUiState.ShowData(
- countries = emptyList(),
- selectedRelay = null,
+ SelectLocationUiState.Data(
+ relayListState =
+ RelayListState.RelayList(
+ countries = emptyList(),
+ selectedRelay = null
+ ),
selectedOwnership = null,
selectedProvidersCount = 0,
searchTerm = ""
@@ -146,9 +156,8 @@ class SelectLocationScreenTest {
setContentWithTheme {
SelectLocationScreen(
uiState =
- SelectLocationUiState.ShowData(
- countries = emptyList(),
- selectedRelay = null,
+ SelectLocationUiState.Data(
+ relayListState = RelayListState.Empty,
selectedOwnership = null,
selectedProvidersCount = 0,
searchTerm = mockSearchString