summaryrefslogtreecommitdiffhomepage
path: root/android/app/src/androidTest
diff options
context:
space:
mode:
authorKalle Lindström <karl.lindstrom@mullvad.net>2024-09-30 18:04:57 +0200
committerDavid Göransson <david.goransson@mullvad.net>2024-10-07 08:34:52 +0200
commit1fe033aabeb67925955906dabb044c2622d2ccd6 (patch)
treef51c3686beb5bc87d8184d812a0dbdd321e44dd4 /android/app/src/androidTest
parent6462dd1d00ea924d99deb27b1741e76e88045ec2 (diff)
downloadmullvadvpn-1fe033aabeb67925955906dabb044c2622d2ccd6.tar.xz
mullvadvpn-1fe033aabeb67925955906dabb044c2622d2ccd6.zip
Update in app expiry notifications over time
Diffstat (limited to 'android/app/src/androidTest')
-rw-r--r--android/app/src/androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen/ConnectScreenTest.kt7
1 files changed, 5 insertions, 2 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 1ae19c534a..ea0d79e319 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
@@ -29,6 +29,7 @@ import net.mullvad.mullvadvpn.lib.model.TunnelState
import net.mullvad.mullvadvpn.repository.InAppNotification
import net.mullvad.mullvadvpn.ui.VersionInfo
import org.joda.time.DateTime
+import org.joda.time.Period
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
@@ -570,7 +571,8 @@ class ConnectScreenTest {
showLocation = false,
deviceName = "",
daysLeftUntilExpiry = null,
- inAppNotification = InAppNotification.AccountExpiry(expiryDate),
+ inAppNotification =
+ InAppNotification.AccountExpiry(Period(DateTime.now(), expiryDate)),
isPlayBuild = false,
)
)
@@ -630,7 +632,8 @@ class ConnectScreenTest {
showLocation = false,
deviceName = "",
daysLeftUntilExpiry = null,
- inAppNotification = InAppNotification.AccountExpiry(expiryDate),
+ inAppNotification =
+ InAppNotification.AccountExpiry(Period(DateTime.now(), expiryDate)),
isPlayBuild = false,
),
)