We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8bc47c commit f756c1fCopy full SHA for f756c1f
packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_tests.dart
@@ -949,7 +949,13 @@ void googleMapsTests() {
949
expect(iwVisibleStatus, false);
950
951
await controller.showMarkerInfoWindow(marker.markerId);
952
- iwVisibleStatus = await controller.isMarkerInfoWindowShown(marker.markerId);
+ // The Maps SDK doesn't always return true for whether it is shown
953
+ // immediately after showing it, so wait for it to report as shown.
954
+ iwVisibleStatus = await waitForValueMatchingPredicate<bool>(
955
+ tester,
956
+ () => controller.isMarkerInfoWindowShown(marker.markerId),
957
+ (bool visible) => visible) ??
958
+ false;
959
expect(iwVisibleStatus, true);
960
961
await controller.hideMarkerInfoWindow(marker.markerId);
0 commit comments