Skip to content

Commit

Permalink
Fixed CarPlay tests on iOS 13
Browse files Browse the repository at this point in the history
The CPWindow doesn’t end up in the view hierarchy by itself on iOS 13, so the navigation service doesn’t start. This test is mainly about simulation mode, not about whether the navigation service starts automatically, so just start it automatically as if the view had loaded.
  • Loading branch information
1ec5 committed Oct 1, 2019
1 parent 4df9753 commit 65c9663
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MapboxNavigationTests/CarPlayManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ class CarPlayManagerSpec: QuickSpec {

//simulate starting a fake trip
manager!.mapTemplate(fakeTemplate, startedTrip: fakeTrip, using: fakeRouteChoice)
manager?.currentNavigator?.navigationService.start()
}

context("When configured to simulate", {
Expand Down

0 comments on commit 65c9663

Please sign in to comment.