diff options
Diffstat (limited to 'android/app/src/androidTest')
2 files changed, 56 insertions, 24 deletions
diff --git a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreenTest.kt b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreenTest.kt index cd25c8ce0b..dae3bf2ed3 100644 --- a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreenTest.kt +++ b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreenTest.kt @@ -82,7 +82,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = InAppNotification.TunnelStateBlocked + inAppNotification = InAppNotification.TunnelStateBlocked, + isPlayBuild = false ), ) } @@ -117,7 +118,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = InAppNotification.TunnelStateBlocked + inAppNotification = InAppNotification.TunnelStateBlocked, + isPlayBuild = false ), ) } @@ -150,7 +152,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = null + inAppNotification = null, + isPlayBuild = false ), ) } @@ -182,7 +185,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = null + inAppNotification = null, + isPlayBuild = false ), ) } @@ -215,7 +219,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = null + inAppNotification = null, + isPlayBuild = false ), ) } @@ -248,7 +253,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = null + inAppNotification = null, + isPlayBuild = false ), ) } @@ -286,7 +292,8 @@ class ConnectScreenTest { inAppNotification = InAppNotification.TunnelStateError( ErrorState(ErrorStateCause.StartTunnelError, true) - ) + ), + isPlayBuild = false ), ) } @@ -325,7 +332,8 @@ class ConnectScreenTest { inAppNotification = InAppNotification.TunnelStateError( ErrorState(ErrorStateCause.StartTunnelError, false) - ) + ), + isPlayBuild = false ), ) } @@ -358,7 +366,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = InAppNotification.TunnelStateBlocked + inAppNotification = InAppNotification.TunnelStateBlocked, + isPlayBuild = false ), ) } @@ -393,7 +402,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = InAppNotification.TunnelStateBlocked + inAppNotification = InAppNotification.TunnelStateBlocked, + isPlayBuild = false ), ) } @@ -428,7 +438,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = null + inAppNotification = null, + isPlayBuild = false ), onSwitchLocationClick = mockedClickHandler ) @@ -460,7 +471,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = null + inAppNotification = null, + isPlayBuild = false ), onDisconnectClick = mockedClickHandler ) @@ -492,7 +504,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = null + inAppNotification = null, + isPlayBuild = false ), onReconnectClick = mockedClickHandler ) @@ -523,7 +536,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = null + inAppNotification = null, + isPlayBuild = false ), onConnectClick = mockedClickHandler ) @@ -554,7 +568,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = null + inAppNotification = null, + isPlayBuild = false ), onCancelClick = mockedClickHandler ) @@ -586,7 +601,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = null + inAppNotification = null, + isPlayBuild = false ), onToggleTunnelInfo = mockedClickHandler ) @@ -625,7 +641,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = true, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = null + inAppNotification = null, + isPlayBuild = false ), ) } @@ -663,7 +680,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = InAppNotification.UpdateAvailable(versionInfo) + inAppNotification = InAppNotification.UpdateAvailable(versionInfo), + isPlayBuild = false ), ) } @@ -699,7 +717,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = InAppNotification.UnsupportedVersion(versionInfo) + inAppNotification = InAppNotification.UnsupportedVersion(versionInfo), + isPlayBuild = false ), ) } @@ -732,7 +751,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = InAppNotification.AccountExpiry(expiryDate) + inAppNotification = InAppNotification.AccountExpiry(expiryDate), + isPlayBuild = false ), ) } @@ -770,7 +790,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = InAppNotification.UnsupportedVersion(versionInfo) + inAppNotification = InAppNotification.UnsupportedVersion(versionInfo), + isPlayBuild = false ), ) } @@ -802,7 +823,8 @@ class ConnectScreenTest { isTunnelInfoExpanded = false, deviceName = "", daysLeftUntilExpiry = null, - inAppNotification = InAppNotification.AccountExpiry(expiryDate) + inAppNotification = InAppNotification.AccountExpiry(expiryDate), + isPlayBuild = false ), ) } diff --git a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/SettingsScreenTest.kt b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/SettingsScreenTest.kt index e15ed012d6..f5daf29bb2 100644 --- a/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/SettingsScreenTest.kt +++ b/android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/SettingsScreenTest.kt @@ -25,7 +25,12 @@ class SettingsScreenTest { composeTestRule.setContentWithTheme { SettingsScreen( uiState = - SettingsUiState(appVersion = "", isLoggedIn = true, isUpdateAvailable = true), + SettingsUiState( + appVersion = "", + isLoggedIn = true, + isUpdateAvailable = true, + isPlayBuild = false + ), ) } // Assert @@ -43,7 +48,12 @@ class SettingsScreenTest { composeTestRule.setContentWithTheme { SettingsScreen( uiState = - SettingsUiState(appVersion = "", isLoggedIn = false, isUpdateAvailable = true), + SettingsUiState( + appVersion = "", + isLoggedIn = false, + isUpdateAvailable = true, + isPlayBuild = false + ), ) } // Assert |
