Skip to content

Commit

Permalink
flutter: stabilize integration tests
Browse files Browse the repository at this point in the history
we need to wait a few more frames before taking a screenshot
  • Loading branch information
iamsergio committed Jan 19, 2025
1 parent 36cd1bf commit c9f2595
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/flutter/integration_test/ui_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ void main() async {
));

await tester.pump();
await tester.pumpAndSettle();
await saveScreenShot(tester, prefix: "basic");
});

Expand Down Expand Up @@ -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");
});
}

0 comments on commit c9f2595

Please sign in to comment.