From dd6bd79c2e281dfc86aa798cd12445b24f9da203 Mon Sep 17 00:00:00 2001 From: Jigar-f Date: Fri, 29 Nov 2024 23:59:06 +0530 Subject: [PATCH] added flaky-test-attempts --- integration_test/app_startup_flow_test.dart | 4 +++- integration_test/run_android_testlabs.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/integration_test/app_startup_flow_test.dart b/integration_test/app_startup_flow_test.dart index 190f863f4..1862ab419 100644 --- a/integration_test/app_startup_flow_test.dart +++ b/integration_test/app_startup_flow_test.dart @@ -1,5 +1,5 @@ -import 'package:integration_test/integration_test.dart'; import 'package:lantern/features/home/home.dart'; +import 'package:lantern/features/vpn/vpn_switch.dart'; import 'utils/test_utils.dart'; @@ -36,6 +36,8 @@ void main() { "app start up sequence", ($) async { await $(HomePage).waitUntilVisible(); + await $.pumpAndSettle(); + await $(AdvancedSwitch).waitUntilVisible(); final bottombar = find.byType(BottomNavigationBar); expect(bottombar, findsOneWidget); }, diff --git a/integration_test/run_android_testlabs.sh b/integration_test/run_android_testlabs.sh index 5a2512b56..19ad0f4f3 100644 --- a/integration_test/run_android_testlabs.sh +++ b/integration_test/run_android_testlabs.sh @@ -13,6 +13,7 @@ gcloud firebase test android run \ --app build/app/outputs/apk/prod/debug/app-prod-debug.apk \ --test build/app/outputs/apk/androidTest/prod/debug/app-prod-debug-androidTest.apk \ --device model=lynx,version=33,locale=en_US,orientation=portrait \ + --num-flaky-test-attempts=2 \ --timeout 10m \ --use-orchestrator \ --environment-variables clearPackageData=true \