Skip to content

Commit

Permalink
added flaky-test-attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed Nov 29, 2024
1 parent 54d7681 commit dd6bd79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integration_test/app_startup_flow_test.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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);
},
Expand Down
1 change: 1 addition & 0 deletions integration_test/run_android_testlabs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit dd6bd79

Please sign in to comment.