Skip to content

Commit

Permalink
Fix ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Aug 26, 2024
1 parent 98461dd commit 2833eb1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.RegisterExtension

@Suppress("LargeClass")
class ConnectScreenTest {
@OptIn(ExperimentalTestApi::class)
@JvmField
Expand Down Expand Up @@ -78,7 +79,7 @@ class ConnectScreenTest {
ConnectUiState(
location = null,
selectedRelayItemTitle = null,
tunnelState = TunnelState.Connecting(null, null),
tunnelState = TunnelState.Connecting(null, null, emptyList()),
inAddress = null,
outAddress = "",
showLocation = false,
Expand Down Expand Up @@ -112,7 +113,11 @@ class ConnectScreenTest {
location = null,
selectedRelayItemTitle = null,
tunnelState =
TunnelState.Connecting(endpoint = mockTunnelEndpoint, null),
TunnelState.Connecting(
endpoint = mockTunnelEndpoint,
null,
emptyList()
),
inAddress = null,
outAddress = "",
showLocation = false,
Expand Down Expand Up @@ -144,7 +149,8 @@ class ConnectScreenTest {
ConnectUiState(
location = null,
selectedRelayItemTitle = null,
tunnelState = TunnelState.Connected(mockTunnelEndpoint, null),
tunnelState =
TunnelState.Connected(mockTunnelEndpoint, null, emptyList()),
inAddress = null,
outAddress = "",
showLocation = false,
Expand Down Expand Up @@ -175,7 +181,8 @@ class ConnectScreenTest {
ConnectUiState(
location = null,
selectedRelayItemTitle = null,
tunnelState = TunnelState.Connected(mockTunnelEndpoint, null),
tunnelState =
TunnelState.Connected(mockTunnelEndpoint, null, emptyList()),
inAddress = null,
outAddress = "",
showLocation = false,
Expand Down Expand Up @@ -437,7 +444,8 @@ class ConnectScreenTest {
ConnectUiState(
location = null,
selectedRelayItemTitle = null,
tunnelState = TunnelState.Connected(mockTunnelEndpoint, null),
tunnelState =
TunnelState.Connected(mockTunnelEndpoint, null, emptyList()),
inAddress = null,
outAddress = "",
showLocation = false,
Expand Down Expand Up @@ -470,7 +478,8 @@ class ConnectScreenTest {
ConnectUiState(
location = null,
selectedRelayItemTitle = null,
tunnelState = TunnelState.Connected(mockTunnelEndpoint, null),
tunnelState =
TunnelState.Connected(mockTunnelEndpoint, null, emptyList()),
inAddress = null,
outAddress = "",
showLocation = false,
Expand Down Expand Up @@ -534,7 +543,7 @@ class ConnectScreenTest {
ConnectUiState(
location = null,
selectedRelayItemTitle = null,
tunnelState = TunnelState.Connecting(null, null),
tunnelState = TunnelState.Connecting(null, null, emptyList()),
inAddress = null,
outAddress = "",
showLocation = false,
Expand Down Expand Up @@ -574,7 +583,8 @@ class ConnectScreenTest {
ConnectUiState(
location = mockLocation,
selectedRelayItemTitle = null,
tunnelState = TunnelState.Connected(mockTunnelEndpoint, null),
tunnelState =
TunnelState.Connected(mockTunnelEndpoint, null, emptyList()),
inAddress = mockInAddress,
outAddress = mockOutAddress,
showLocation = false,
Expand Down Expand Up @@ -608,7 +618,7 @@ class ConnectScreenTest {
ConnectUiState(
location = null,
selectedRelayItemTitle = null,
tunnelState = TunnelState.Connecting(null, null),
tunnelState = TunnelState.Connecting(null, null, emptyList()),
inAddress = null,
outAddress = "",
showLocation = false,
Expand Down Expand Up @@ -640,7 +650,7 @@ class ConnectScreenTest {
ConnectUiState(
location = null,
selectedRelayItemTitle = null,
tunnelState = TunnelState.Connecting(null, null),
tunnelState = TunnelState.Connecting(null, null, emptyList()),
inAddress = null,
outAddress = "",
showLocation = false,
Expand Down Expand Up @@ -671,7 +681,7 @@ class ConnectScreenTest {
ConnectUiState(
location = null,
selectedRelayItemTitle = null,
tunnelState = TunnelState.Connecting(null, null),
tunnelState = TunnelState.Connecting(null, null, emptyList()),
inAddress = null,
outAddress = "",
showLocation = false,
Expand Down Expand Up @@ -704,7 +714,7 @@ class ConnectScreenTest {
ConnectUiState(
location = null,
selectedRelayItemTitle = null,
tunnelState = TunnelState.Connecting(null, null),
tunnelState = TunnelState.Connecting(null, null, emptyList()),
inAddress = null,
outAddress = "",
showLocation = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class OutOfTimeScreenTest {
OutOfTimeScreen(
state =
OutOfTimeUiState(
tunnelState = TunnelState.Connecting(null, null),
tunnelState = TunnelState.Connecting(null, null, emptyList()),
deviceName = "",
showSitePayment = true
),
Expand Down

0 comments on commit 2833eb1

Please sign in to comment.