Skip to content

Commit b26659e

Browse files
committed
Merge branch 'fixes-for-firebase-e2e-still-sometimes-failing'
2 parents d6771c2 + 207cc54 commit b26659e

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

android/test/e2e/src/main/kotlin/net/mullvad/mullvadvpn/test/e2e/LoginTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import net.mullvad.mullvadvpn.test.common.constant.LOGIN_FAILURE_TIMEOUT
55
import net.mullvad.mullvadvpn.test.common.extension.clickAgreeOnPrivacyDisclaimer
66
import net.mullvad.mullvadvpn.test.common.extension.clickAllowOnNotificationPermissionPromptIfApiLevel33AndAbove
77
import net.mullvad.mullvadvpn.test.common.extension.findObjectWithTimeout
8-
import net.mullvad.mullvadvpn.test.e2e.annotations.HighlyRateLimited
98
import net.mullvad.mullvadvpn.test.e2e.misc.AccountTestRule
9+
import org.junit.jupiter.api.Disabled
1010
import org.junit.jupiter.api.Test
1111
import org.junit.jupiter.api.extension.RegisterExtension
1212

@@ -27,7 +27,7 @@ class LoginTest : EndToEndTest(BuildConfig.FLAVOR_infrastructure) {
2727
}
2828

2929
@Test
30-
@HighlyRateLimited
30+
@Disabled("Failed login attempts are highly rate limited and cause test flakiness")
3131
fun testLoginWithInvalidCredentials() {
3232
// Given
3333
val invalidDummyAccountNumber = accountTestRule.invalidAccountNumber

android/test/e2e/src/main/kotlin/net/mullvad/mullvadvpn/test/e2e/misc/SimpleMullvadHttpClient.kt

+8-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,14 @@ class SimpleMullvadHttpClient(context: Context) {
194194
"Unable to verify account due to invalid account or connectivity issues."
195195

196196
private val onErrorResponse = { error: VolleyError ->
197-
Logger.e("Response returned error status code: ${error.networkResponse.statusCode}")
197+
if (error.networkResponse != null) {
198+
Logger.e(
199+
"Response returned error message: ${error.message} " +
200+
"status code: ${error.networkResponse.statusCode}"
201+
)
202+
} else {
203+
Logger.e("Response returned error: ${error.message}")
204+
}
198205
}
199206
}
200207
}

android/test/firebase/e2e-play-stagemole.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ default:
55
test: android/test/e2e/build/outputs/apk/playStagemole/debug/e2e-play-stagemole-debug.apk
66
timeout: 10m
77
use-orchestrator: true
8+
num-flaky-test-attempts: 1
89
device:
910
- {model: shiba, version: 34, locale: en, orientation: portrait} # pixel 8
1011
- {model: felix, version: 34, locale: en, orientation: portrait} # pixel fold

android/test/firebase/mockapi-oss.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ default:
55
test: android/test/mockapi/build/outputs/apk/oss/debug/mockapi-oss-debug.apk
66
timeout: 10m
77
use-orchestrator: true
8+
num-flaky-test-attempts: 1
89
device:
910
- {model: shiba, version: 34, locale: en, orientation: portrait}
1011
- {model: tangorpro, version: 33, locale: en, orientation: portrait}

0 commit comments

Comments
 (0)