diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-04-28 12:19:12 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-05-05 01:07:29 -0700 |
commit | d1c3756f14c1fb051b773f84617d32e3cfd909d1 (patch) | |
tree | 676e3485376532f65e88897a235441011a3673d4 | |
parent | 585c63fb1e5bf7c0d49d26f4182f791cd87634b9 (diff) | |
download | qtlocation-mapboxgl-upstream/1ec5-xcuitest-4794.tar.gz |
[ios] Increased user dot timeout againupstream/1ec5-xcuitest-4794
Also log the user dot’s frame.
-rw-r--r-- | platform/ios/uitest/MGLUserLocationTests.m | 4 |
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"]; |