@@ -25,7 +25,7 @@ - (void)testNoOverlay {
25
25
[app launch ];
26
26
27
27
XCUIElement* platform_view = app.textViews [@" platform_view[0]" ];
28
- XCTAssertTrue (platform_view. exists );
28
+ XCTAssertTrue ([ platform_view waitForExistenceWithTimeout: 1.0 ] );
29
29
XCTAssertEqual (platform_view.frame .origin .x , 25 );
30
30
XCTAssertEqual (platform_view.frame .origin .y , 25 );
31
31
XCTAssertEqual (platform_view.frame .size .width , 250 );
@@ -47,7 +47,7 @@ - (void)testOneOverlay {
47
47
[app launch ];
48
48
49
49
XCUIElement* platform_view = app.textViews [@" platform_view[0]" ];
50
- XCTAssertTrue (platform_view. exists );
50
+ XCTAssertTrue ([ platform_view waitForExistenceWithTimeout: 1.0 ] );
51
51
XCTAssertEqual (platform_view.frame .origin .x , 25 );
52
52
XCTAssertEqual (platform_view.frame .origin .y , 25 );
53
53
XCTAssertEqual (platform_view.frame .size .width , 250 );
@@ -72,7 +72,7 @@ - (void)testOneOverlayPartialIntersection {
72
72
[app launch ];
73
73
74
74
XCUIElement* platform_view = app.textViews [@" platform_view[0]" ];
75
- XCTAssertTrue (platform_view. exists );
75
+ XCTAssertTrue ([ platform_view waitForExistenceWithTimeout: 1.0 ] );
76
76
XCTAssertEqual (platform_view.frame .origin .x , 25 );
77
77
XCTAssertEqual (platform_view.frame .origin .y , 25 );
78
78
XCTAssertEqual (platform_view.frame .size .width , 250 );
@@ -100,7 +100,7 @@ - (void)testTwoIntersectingOverlays {
100
100
[app launch ];
101
101
102
102
XCUIElement* platform_view = app.textViews [@" platform_view[0]" ];
103
- XCTAssertTrue (platform_view. exists );
103
+ XCTAssertTrue ([ platform_view waitForExistenceWithTimeout: 1.0 ] );
104
104
XCTAssertEqual (platform_view.frame .origin .x , 25 );
105
105
XCTAssertEqual (platform_view.frame .origin .y , 25 );
106
106
XCTAssertEqual (platform_view.frame .size .width , 250 );
@@ -129,7 +129,7 @@ - (void)testOneOverlayAndTwoIntersectingOverlays {
129
129
[app launch ];
130
130
131
131
XCUIElement* platform_view = app.textViews [@" platform_view[0]" ];
132
- XCTAssertTrue (platform_view. exists );
132
+ XCTAssertTrue ([ platform_view waitForExistenceWithTimeout: 1.0 ] );
133
133
XCTAssertEqual (platform_view.frame .origin .x , 25 );
134
134
XCTAssertEqual (platform_view.frame .origin .y , 25 );
135
135
XCTAssertEqual (platform_view.frame .size .width , 250 );
@@ -163,7 +163,7 @@ - (void)testMultiplePlatformViewsWithoutOverlays {
163
163
[app launch ];
164
164
165
165
XCUIElement* platform_view1 = app.textViews [@" platform_view[0]" ];
166
- XCTAssertTrue (platform_view1. exists );
166
+ XCTAssertTrue ([ platform_view1 waitForExistenceWithTimeout: 1.0 ] );
167
167
XCTAssertEqual (platform_view1.frame .origin .x , 25 );
168
168
XCTAssertEqual (platform_view1.frame .origin .y , 325 );
169
169
XCTAssertEqual (platform_view1.frame .size .width , 250 );
@@ -193,7 +193,7 @@ - (void)testMultiplePlatformViewsWithOverlays {
193
193
[app launch ];
194
194
195
195
XCUIElement* platform_view1 = app.textViews [@" platform_view[0]" ];
196
- XCTAssertTrue (platform_view1. exists );
196
+ XCTAssertTrue ([ platform_view1 waitForExistenceWithTimeout: 1.0 ] );
197
197
XCTAssertEqual (platform_view1.frame .origin .x , 25 );
198
198
XCTAssertEqual (platform_view1.frame .origin .y , 325 );
199
199
XCTAssertEqual (platform_view1.frame .size .width , 250 );
@@ -235,7 +235,7 @@ - (void)testPlatformViewsMaxOverlays {
235
235
[app launch ];
236
236
237
237
XCUIElement* platform_view = app.textViews [@" platform_view[0]" ];
238
- XCTAssertTrue (platform_view. exists );
238
+ XCTAssertTrue ([ platform_view waitForExistenceWithTimeout: 1.0 ] );
239
239
XCTAssertEqual (platform_view.frame .origin .x , 25 );
240
240
XCTAssertEqual (platform_view.frame .origin .y , 25 );
241
241
XCTAssertEqual (platform_view.frame .size .width , 250 );
0 commit comments