6
6
@import os.log;
7
7
8
8
@interface GoogleMapsUITests : XCTestCase
9
- @property (nonatomic , strong ) XCUIApplication* app;
9
+ @property (nonatomic , strong ) XCUIApplication * app;
10
10
@end
11
11
12
12
@implementation GoogleMapsUITests
@@ -21,9 +21,9 @@ - (void)setUp {
21
21
// See: https://github.com/flutter/flutter/issues/93325.
22
22
[self
23
23
addUIInterruptionMonitorWithDescription: @" Permission popups"
24
- handler: ^BOOL (XCUIElement* _Nonnull interruptingElement) {
24
+ handler: ^BOOL (XCUIElement * _Nonnull interruptingElement) {
25
25
if (@available (iOS 14 , *)) {
26
- XCUIElement* locationPermission =
26
+ XCUIElement * locationPermission =
27
27
interruptingElement.buttons [@" Allow While Using App" ];
28
28
if (![locationPermission
29
29
waitForExistenceWithTimeout: 30.0 ]) {
@@ -33,7 +33,7 @@ - (void)setUp {
33
33
[locationPermission tap ];
34
34
35
35
} else {
36
- XCUIElement* allow =
36
+ XCUIElement * allow =
37
37
interruptingElement.buttons [@" Allow" ];
38
38
if (![allow waitForExistenceWithTimeout: 30.0 ]) {
39
39
XCTFail (@" Failed due to not able to find Allow button" );
@@ -46,19 +46,19 @@ - (void)setUp {
46
46
47
47
// Temporarily disabled due to https://github.com/flutter/flutter/issues/93325
48
48
- (void )skip_testUserInterface {
49
- XCUIApplication* app = self.app ;
50
- XCUIElement* userInteface = app.staticTexts [@" User interface" ];
49
+ XCUIApplication * app = self.app ;
50
+ XCUIElement * userInteface = app.staticTexts [@" User interface" ];
51
51
if (![userInteface waitForExistenceWithTimeout: 30.0 ]) {
52
52
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
53
53
XCTFail (@" Failed due to not able to find User interface" );
54
54
}
55
55
[userInteface tap ];
56
- XCUIElement* platformView = app.otherElements [@" platform_view[0]" ];
56
+ XCUIElement * platformView = app.otherElements [@" platform_view[0]" ];
57
57
if (![platformView waitForExistenceWithTimeout: 30.0 ]) {
58
58
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
59
59
XCTFail (@" Failed due to not able to find platform view" );
60
60
}
61
- XCUIElement* compass = app.buttons [@" disable compass" ];
61
+ XCUIElement * compass = app.buttons [@" disable compass" ];
62
62
if (![compass waitForExistenceWithTimeout: 30.0 ]) {
63
63
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
64
64
XCTFail (@" Failed due to not able to find compass button" );
@@ -67,21 +67,21 @@ - (void)skip_testUserInterface {
67
67
}
68
68
69
69
- (void )testMapCoordinatesPage {
70
- XCUIApplication* app = self.app ;
71
- XCUIElement* mapCoordinates = app.staticTexts [@" Map coordinates" ];
70
+ XCUIApplication * app = self.app ;
71
+ XCUIElement * mapCoordinates = app.staticTexts [@" Map coordinates" ];
72
72
if (![mapCoordinates waitForExistenceWithTimeout: 30.0 ]) {
73
73
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
74
74
XCTFail (@" Failed due to not able to find 'Map coordinates''" );
75
75
}
76
76
[mapCoordinates tap ];
77
77
78
- XCUIElement* platformView = app.otherElements [@" platform_view[0]" ];
78
+ XCUIElement * platformView = app.otherElements [@" platform_view[0]" ];
79
79
if (![platformView waitForExistenceWithTimeout: 30.0 ]) {
80
80
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
81
81
XCTFail (@" Failed due to not able to find platform view" );
82
82
}
83
83
84
- XCUIElement* getVisibleRegionBoundsButton = app.buttons [@" Get Visible Region Bounds" ];
84
+ XCUIElement * getVisibleRegionBoundsButton = app.buttons [@" Get Visible Region Bounds" ];
85
85
if (![getVisibleRegionBoundsButton waitForExistenceWithTimeout: 30.0 ]) {
86
86
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
87
87
XCTFail (@" Failed due to not able to find 'Get Visible Region Bounds''" );
@@ -90,31 +90,31 @@ - (void)testMapCoordinatesPage {
90
90
}
91
91
92
92
- (void )testMapClickPage {
93
- XCUIApplication* app = self.app ;
94
- XCUIElement* mapClick = app.staticTexts [@" Map click" ];
93
+ XCUIApplication * app = self.app ;
94
+ XCUIElement * mapClick = app.staticTexts [@" Map click" ];
95
95
if (![mapClick waitForExistenceWithTimeout: 30.0 ]) {
96
96
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
97
97
XCTFail (@" Failed due to not able to find 'Map click''" );
98
98
}
99
99
[mapClick tap ];
100
100
101
- XCUIElement* platformView = app.otherElements [@" platform_view[0]" ];
101
+ XCUIElement * platformView = app.otherElements [@" platform_view[0]" ];
102
102
if (![platformView waitForExistenceWithTimeout: 30.0 ]) {
103
103
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
104
104
XCTFail (@" Failed due to not able to find platform view" );
105
105
}
106
106
107
107
[platformView tap ];
108
108
109
- XCUIElement* tapped = app.staticTexts [@" Tapped" ];
109
+ XCUIElement * tapped = app.staticTexts [@" Tapped" ];
110
110
if (![tapped waitForExistenceWithTimeout: 30.0 ]) {
111
111
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
112
112
XCTFail (@" Failed due to not able to find 'tapped''" );
113
113
}
114
114
115
115
[platformView pressForDuration: 5.0 ];
116
116
117
- XCUIElement* longPressed = app.staticTexts [@" Long pressed" ];
117
+ XCUIElement * longPressed = app.staticTexts [@" Long pressed" ];
118
118
if (![longPressed waitForExistenceWithTimeout: 30.0 ]) {
119
119
os_log_error (OS_LOG_DEFAULT, " %@" , app.debugDescription );
120
120
XCTFail (@" Failed due to not able to find 'longPressed''" );
0 commit comments