summaryrefslogtreecommitdiffhomepage
path: root/android/app/src/androidTest
diff options
context:
space:
mode:
Diffstat (limited to 'android/app/src/androidTest')
-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