anchor.diff:      expect(iwVisibleStatus, false);
   
       await controller.showMarkerInfoWindow(marker.markerId);
  -    iwVisibleStatus = await controller.isMarkerInfoWindowShown(marker.markerId);
  +    // The Maps SDK doesn't always return true for whether it is shown
  +    // immediately after showing it, so wait for it to report as shown.
  +    iwVisibleStatus = await waitForValueMatchingPredicate<bool>(
  +            tester,
  +            () => controller.isMarkerInfoWindowShown(marker.markerId),
  +            (bool visible) => visible) ??
  +        false;
       expect(iwVisibleStatus, true);
   
       await controller.hideMarkerInfoWindow(marker.markerId);
  
positive.code: void main() {
    IntegrationTestWidgetsFlutterBinding.ensureInitialized();
    GoogleMapsFlutterPlatform.instance.enableDebugInspection();
  
    testWidgets('testCompassToggle', (WidgetTester tester) async {
      final Key key = GlobalKey();
  
negative.code:     final GoogleMapController mapController =
          await mapControllerCompleter.future;
  
      // Wait for the visible region to be non-zero.
      final LatLngBounds firstVisibleRegion =
          await waitForValueMatchingPredicate<LatLngBounds>(
                  tester,
                  () => mapController.getVisibleRegion(),
                  (LatLngBounds bounds) => bounds != zeroLatLngBounds) ??
              zeroLatLngBounds;
      expect(firstVisibleRegion, isNot(zeroLatLngBounds));
      expect(firstVisibleRegion.contains(_kInitialMapCenter), isTrue);
  
  