Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for firebase e2e still sometimes failing #6653

Merged
merged 3 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,15 +5,16 @@
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

Check warning on line 10 in android/test/firebase/e2e-play-stagemole.yml

View workflow job for this annotation

GitHub Actions / check-formatting

10:70 [comments] too few spaces before comment
- {model: felix, version: 34, locale: en, orientation: portrait} # pixel fold

Check warning on line 11 in android/test/firebase/e2e-play-stagemole.yml

View workflow job for this annotation

GitHub Actions / check-formatting

11:70 [comments] too few spaces before comment
- {model: tangorpro, version: 33, locale: en, orientation: portrait} # pixel tablet

Check warning on line 12 in android/test/firebase/e2e-play-stagemole.yml

View workflow job for this annotation

GitHub Actions / check-formatting

12:74 [comments] too few spaces before comment
- {model: oriole, version: 32, locale: en, orientation: portrait} # pixel 6

Check warning on line 13 in android/test/firebase/e2e-play-stagemole.yml

View workflow job for this annotation

GitHub Actions / check-formatting

13:71 [comments] too few spaces before comment
- {model: oriole, version: 31, locale: en, orientation: portrait} # pixel 6

Check warning on line 14 in android/test/firebase/e2e-play-stagemole.yml

View workflow job for this annotation

GitHub Actions / check-formatting

14:71 [comments] too few spaces before comment
- {model: redfin, version: 30, locale: en, orientation: portrait} # pixel 5

Check warning on line 15 in android/test/firebase/e2e-play-stagemole.yml

View workflow job for this annotation

GitHub Actions / check-formatting

15:71 [comments] too few spaces before comment
- {model: crownqlteue, version: 29, locale: en, orientation: portrait} # galaxy note9

Check warning on line 16 in android/test/firebase/e2e-play-stagemole.yml

View workflow job for this annotation

GitHub Actions / check-formatting

16:76 [comments] too few spaces before comment
- {model: blueline, version: 28, locale: en, orientation: portrait} # pixel 3

Check warning on line 17 in android/test/firebase/e2e-play-stagemole.yml

View workflow job for this annotation

GitHub Actions / check-formatting

17:73 [comments] too few spaces before comment
- {model: cactus, version: 27, locale: en, orientation: portrait} # redmi 6a
- {model: starqlteue, version: 26, locale: en, orientation: portrait} # galaxy s9
environment-variables:
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
Loading