Fix testUserTrackingModeFollow test to accept location permissions ask
I thought that the tests were bypassing the permissions dialog, but it turns out that was only half correct: we were not actually asking for `always` location permission in MBGL.
This commit is contained in:
@@ -544,7 +544,7 @@
|
||||
- (void)testUserTrackingModeFollow {
|
||||
tester.mapView.userTrackingMode = MGLUserTrackingModeFollow;
|
||||
|
||||
[tester waitForTimeInterval:1];
|
||||
[tester acknowledgeSystemAlert];
|
||||
|
||||
XCTAssertEqual(tester.mapView.userLocationVisible,
|
||||
YES,
|
||||
@@ -570,7 +570,7 @@
|
||||
- (void)testUserTrackingModeFollowWithHeading {
|
||||
tester.mapView.userTrackingMode = MGLUserTrackingModeFollowWithHeading;
|
||||
|
||||
[tester waitForTimeInterval:1];
|
||||
[tester acknowledgeSystemAlert];
|
||||
|
||||
XCTAssertEqual(tester.mapView.userLocationVisible,
|
||||
YES,
|
||||
|
||||
Reference in New Issue
Block a user