From 89ad5a9d6a337ab63ee8c122a59b9302f454a40f Mon Sep 17 00:00:00 2001 From: Chris Yang Date: Wed, 30 Nov 2022 22:47:29 -0800 Subject: [PATCH] enable test (#5312) --- .../example/ios/RunnerUITests/GoogleMapsUITests.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/ios/RunnerUITests/GoogleMapsUITests.m b/packages/google_maps_flutter/google_maps_flutter_ios/example/ios/RunnerUITests/GoogleMapsUITests.m index f4cdb7c50ab2..b83d81b33135 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/ios/RunnerUITests/GoogleMapsUITests.m +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/ios/RunnerUITests/GoogleMapsUITests.m @@ -18,8 +18,6 @@ - (void)setUp { self.app = [[XCUIApplication alloc] init]; [self.app launch]; - // The location permission interception is currently not working. - // See: https://github.com/flutter/flutter/issues/93325. [self addUIInterruptionMonitorWithDescription:@"Permission popups" handler:^BOOL(XCUIElement *_Nonnull interruptingElement) { @@ -45,8 +43,7 @@ - (void)setUp { }]; } -// Temporarily disabled due to https://github.com/flutter/flutter/issues/93325 -- (void)skip_testUserInterface { +- (void)testUserInterface { XCUIApplication *app = self.app; XCUIElement *userInteface = app.staticTexts[@"User interface"]; if (![userInteface waitForExistenceWithTimeout:30.0]) { @@ -54,6 +51,9 @@ - (void)skip_testUserInterface { XCTFail(@"Failed due to not able to find User interface"); } [userInteface tap]; + // There is a known bug where the permission popups interruption won't get fired until a tap + // happened in the app. We expect a permission popup so we do a tap here. + [app tap]; XCUIElement *platformView = app.otherElements[@"platform_view[0]"]; if (![platformView waitForExistenceWithTimeout:30.0]) { os_log_error(OS_LOG_DEFAULT, "%@", app.debugDescription);