From 65ef4847349ffded821463ecc1dcf4ad822363aa Mon Sep 17 00:00:00 2001 From: Jonatan Rhodin Date: Wed, 7 Feb 2024 15:34:45 +0100 Subject: [PATCH] Fix flaky account history mockapi test Add some extra time to for the login page to show to improve stability of the test. --- .../mullvad/mullvadvpn/test/mockapi/AccountHistoryMockApiTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/android/test/mockapi/src/main/kotlin/net/mullvad/mullvadvpn/test/mockapi/AccountHistoryMockApiTest.kt b/android/test/mockapi/src/main/kotlin/net/mullvad/mullvadvpn/test/mockapi/AccountHistoryMockApiTest.kt index 9d1727cad7d7..56416341ef26 100644 --- a/android/test/mockapi/src/main/kotlin/net/mullvad/mullvadvpn/test/mockapi/AccountHistoryMockApiTest.kt +++ b/android/test/mockapi/src/main/kotlin/net/mullvad/mullvadvpn/test/mockapi/AccountHistoryMockApiTest.kt @@ -36,6 +36,7 @@ class AccountHistoryMockApiTest : MockApiTest() { app.ensureLoggedIn() app.clickAccountCog() app.clickActionButtonByText("Log out") + app.waitForLoginPrompt() device.findObjectWithTimeout(By.res(LOGIN_INPUT_TEST_TAG)).click() // Assert