summaryrefslogtreecommitdiffhomepage
path: root/android/test/e2e/src
diff options
context:
space:
mode:
authorDavid Göransson <david.goransson@mullvad.net>2024-09-17 15:28:58 +0200
committerDavid Göransson <david.goransson@mullvad.net>2024-09-18 14:35:22 +0200
commitc06026cae12be2757376883dfbf879528e545b4f (patch)
treeb533d83806ec42fcbe242e693032d4db62e45d4a /android/test/e2e/src
parent567e64f458781112eae97f860e8e2796e78507a3 (diff)
downloadmullvadvpn-c06026cae12be2757376883dfbf879528e545b4f.tar.xz
mullvadvpn-c06026cae12be2757376883dfbf879528e545b4f.zip
Fix tests
Diffstat (limited to 'android/test/e2e/src')
-rw-r--r--android/test/e2e/src/main/kotlin/net/mullvad/mullvadvpn/test/e2e/ConnectionTest.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/android/test/e2e/src/main/kotlin/net/mullvad/mullvadvpn/test/e2e/ConnectionTest.kt b/android/test/e2e/src/main/kotlin/net/mullvad/mullvadvpn/test/e2e/ConnectionTest.kt
index 8f262f94e9..7b98c2f8f3 100644
--- a/android/test/e2e/src/main/kotlin/net/mullvad/mullvadvpn/test/e2e/ConnectionTest.kt
+++ b/android/test/e2e/src/main/kotlin/net/mullvad/mullvadvpn/test/e2e/ConnectionTest.kt
@@ -26,11 +26,11 @@ class ConnectionTest : EndToEndTest(BuildConfig.FLAVOR_infrastructure) {
app.launchAndEnsureLoggedIn(accountTestRule.validAccountNumber)
// When
- device.findObjectWithTimeout(By.text("Secure my connection")).click()
+ device.findObjectWithTimeout(By.text("Connect")).click()
device.findObjectWithTimeout(By.text("OK")).click()
// Then
- device.findObjectWithTimeout(By.text("SECURE CONNECTION"), VERY_LONG_TIMEOUT)
+ device.findObjectWithTimeout(By.text("CONNECTED"), VERY_LONG_TIMEOUT)
}
@Test
@@ -39,10 +39,10 @@ class ConnectionTest : EndToEndTest(BuildConfig.FLAVOR_infrastructure) {
app.launchAndEnsureLoggedIn(accountTestRule.validAccountNumber)
// When
- device.findObjectWithTimeout(By.text("Secure my connection")).click()
+ device.findObjectWithTimeout(By.text("Connect")).click()
device.findObjectWithTimeout(By.text("OK")).click()
- device.findObjectWithTimeout(By.text("SECURE CONNECTION"), VERY_LONG_TIMEOUT)
- val expected = ConnCheckState(true, app.extractIpAddress())
+ device.findObjectWithTimeout(By.text("CONNECTED"), VERY_LONG_TIMEOUT)
+ val expected = ConnCheckState(true, app.extractOutIpv4Address())
// Then
val result = SimpleMullvadHttpClient(targetContext).runConnectionCheck()