Skip to content

Commit 89ad5a9

Browse files
author
Chris Yang
authored
enable test (flutter#5312)
1 parent eb796fe commit 89ad5a9

File tree

1 file changed

+4
-4
lines changed
  • packages/google_maps_flutter/google_maps_flutter_ios/example/ios/RunnerUITests

1 file changed

+4
-4
lines changed

packages/google_maps_flutter/google_maps_flutter_ios/example/ios/RunnerUITests/GoogleMapsUITests.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ - (void)setUp {
1818
self.app = [[XCUIApplication alloc] init];
1919
[self.app launch];
2020

21-
// The location permission interception is currently not working.
22-
// See: https://github.com/flutter/flutter/issues/93325.
2321
[self
2422
addUIInterruptionMonitorWithDescription:@"Permission popups"
2523
handler:^BOOL(XCUIElement *_Nonnull interruptingElement) {
@@ -45,15 +43,17 @@ - (void)setUp {
4543
}];
4644
}
4745

48-
// Temporarily disabled due to https://github.com/flutter/flutter/issues/93325
49-
- (void)skip_testUserInterface {
46+
- (void)testUserInterface {
5047
XCUIApplication *app = self.app;
5148
XCUIElement *userInteface = app.staticTexts[@"User interface"];
5249
if (![userInteface waitForExistenceWithTimeout:30.0]) {
5350
os_log_error(OS_LOG_DEFAULT, "%@", app.debugDescription);
5451
XCTFail(@"Failed due to not able to find User interface");
5552
}
5653
[userInteface tap];
54+
// There is a known bug where the permission popups interruption won't get fired until a tap
55+
// happened in the app. We expect a permission popup so we do a tap here.
56+
[app tap];
5757
XCUIElement *platformView = app.otherElements[@"platform_view[0]"];
5858
if (![platformView waitForExistenceWithTimeout:30.0]) {
5959
os_log_error(OS_LOG_DEFAULT, "%@", app.debugDescription);

0 commit comments

Comments
 (0)