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 Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ - (void)setUp {
18
18
self.app = [[XCUIApplication alloc ] init ];
19
19
[self .app launch ];
20
20
21
- // The location permission interception is currently not working.
22
- // See: https://github.com/flutter/flutter/issues/93325.
23
21
[self
24
22
addUIInterruptionMonitorWithDescription: @" Permission popups"
25
23
handler: ^BOOL (XCUIElement *_Nonnull interruptingElement) {
@@ -45,15 +43,17 @@ - (void)setUp {
45
43
}];
46
44
}
47
45
48
- // Temporarily disabled due to https://github.com/flutter/flutter/issues/93325
49
- - (void )skip_testUserInterface {
46
+ - (void )testUserInterface {
50
47
XCUIApplication *app = self.app ;
51
48
XCUIElement *userInteface = app.staticTexts [@" User interface" ];
52
49
if (![userInteface waitForExistenceWithTimeout: 30.0 ]) {
53
50
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
54
51
XCTFail (@" Failed due to not able to find User interface" );
55
52
}
56
53
[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 ];
57
57
XCUIElement *platformView = app.otherElements [@" platform_view[0]" ];
58
58
if (![platformView waitForExistenceWithTimeout: 30.0 ]) {
59
59
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
You can’t perform that action at this time.
0 commit comments