Skip to content

Commit

Permalink
Merge branch 'fixes-for-firebase-e2e-still-sometimes-failing'
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Aug 21, 2024
2 parents d6771c2 + 207cc54 commit b26659e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import net.mullvad.mullvadvpn.test.common.constant.LOGIN_FAILURE_TIMEOUT
import net.mullvad.mullvadvpn.test.common.extension.clickAgreeOnPrivacyDisclaimer
import net.mullvad.mullvadvpn.test.common.extension.clickAllowOnNotificationPermissionPromptIfApiLevel33AndAbove
import net.mullvad.mullvadvpn.test.common.extension.findObjectWithTimeout
import net.mullvad.mullvadvpn.test.e2e.annotations.HighlyRateLimited
import net.mullvad.mullvadvpn.test.e2e.misc.AccountTestRule
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.RegisterExtension

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

@Test
@HighlyRateLimited
@Disabled("Failed login attempts are highly rate limited and cause test flakiness")
fun testLoginWithInvalidCredentials() {
// Given
val invalidDummyAccountNumber = accountTestRule.invalidAccountNumber
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,14 @@ class SimpleMullvadHttpClient(context: Context) {
"Unable to verify account due to invalid account or connectivity issues."

private val onErrorResponse = { error: VolleyError ->
Logger.e("Response returned error status code: ${error.networkResponse.statusCode}")
if (error.networkResponse != null) {
Logger.e(
"Response returned error message: ${error.message} " +
"status code: ${error.networkResponse.statusCode}"
)
} else {
Logger.e("Response returned error: ${error.message}")
}
}
}
}
1 change: 1 addition & 0 deletions android/test/firebase/e2e-play-stagemole.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ default:
test: android/test/e2e/build/outputs/apk/playStagemole/debug/e2e-play-stagemole-debug.apk
timeout: 10m
use-orchestrator: true
num-flaky-test-attempts: 1
device:
- {model: shiba, version: 34, locale: en, orientation: portrait} # pixel 8
- {model: felix, version: 34, locale: en, orientation: portrait} # pixel fold
Expand Down
1 change: 1 addition & 0 deletions android/test/firebase/mockapi-oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ default:
test: android/test/mockapi/build/outputs/apk/oss/debug/mockapi-oss-debug.apk
timeout: 10m
use-orchestrator: true
num-flaky-test-attempts: 1
device:
- {model: shiba, version: 34, locale: en, orientation: portrait}
- {model: tangorpro, version: 33, locale: en, orientation: portrait}
Expand Down

0 comments on commit b26659e

Please sign in to comment.