diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_tests.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_tests.dart index d22767c44c2d..97e7dfa0a37e 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_tests.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_tests.dart @@ -936,6 +936,14 @@ void googleMapsTests() { final ExampleGoogleMapController controller = await controllerCompleter.future; + await tester.pumpAndSettle(); + + // TODO(mossmana): Adding this delay addresses + // https://github.com/flutter/flutter/issues/131783. It may be related + // to https://github.com/flutter/flutter/issues/54758 and should be + // re-evaluated when that issue is fixed. + await Future.delayed(const Duration(seconds: 1)); + bool iwVisibleStatus = await controller.isMarkerInfoWindowShown(marker.markerId); expect(iwVisibleStatus, false); @@ -953,9 +961,7 @@ void googleMapsTests() { await controller.hideMarkerInfoWindow(marker.markerId); iwVisibleStatus = await controller.isMarkerInfoWindowShown(marker.markerId); expect(iwVisibleStatus, false); - }, - // TODO(camsim99): Fix https://github.com/flutter/flutter/issues/131783. - skip: true); + }); testWidgets('fromAssetImage', (WidgetTester tester) async { const double pixelRatio = 2;