summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/ios/uitest/MGLUserLocationTests.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/ios/uitest/MGLUserLocationTests.m b/platform/ios/uitest/MGLUserLocationTests.m
index c1ad94c3ad..f74c16f0b1 100644
--- a/platform/ios/uitest/MGLUserLocationTests.m
+++ b/platform/ios/uitest/MGLUserLocationTests.m
@@ -28,7 +28,9 @@
}] evaluatedWithObject:userLocationAnnotationElement handler:nil];
[userTrackingModeElement tap];
XCTAssertEqualObjects(userTrackingModeElement.value, @"Follow location", @"User location tracking mode should be on after tapping the user tracking mode button.");
- [self waitForExpectationsWithTimeout:5 handler:nil];
+ [self waitForExpectationsWithTimeout:10 handler:^(NSError * _Nullable error) {
+ XCTAssertNil(error, @"There was an error: %@\nUser dot is at: %f,%f %fx%f", error, userDotAnnotationFrame.origin.x, userDotAnnotationFrame.origin.y, userDotAnnotationFrame.size.width, userDotAnnotationFrame.size.height);
+ }];
// Open the user dot’s callout view.
XCUIElement *titleText = app.staticTexts[@"You Are Here"];