From c9f25952f9325e9bb3000edf755256b6319eec83 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Sun, 19 Jan 2025 20:05:34 +0000 Subject: [PATCH] flutter: stabilize integration tests we need to wait a few more frames before taking a screenshot --- tests/flutter/integration_test/ui_test.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/flutter/integration_test/ui_test.dart b/tests/flutter/integration_test/ui_test.dart index 2fe9adf6c..c290227e7 100644 --- a/tests/flutter/integration_test/ui_test.dart +++ b/tests/flutter/integration_test/ui_test.dart @@ -93,6 +93,7 @@ void main() async { )); await tester.pump(); + await tester.pumpAndSettle(); await saveScreenShot(tester, prefix: "basic"); }); @@ -127,7 +128,7 @@ void main() async { expect(bottomGroup.numDockWidgets(), 1); expect(bottomGroup.dockWidgetAt(0), dock2); - await tester.pump(); + await tester.pumpAndSettle(); await saveScreenShot(tester, prefix: "titlebar-close-button-2"); }); }