Skip to content

Commit

Permalink
Running CI tests on iOS 17 (#4586)
Browse files Browse the repository at this point in the history
* Add iOS CI job to CI

* Add reference screenshots

* Add iOS 17 exception to testReturnRouteShieldIfIncorrectUrls
  • Loading branch information
azarovalex authored Jan 24, 2024
1 parent c976919 commit 7f0ead7
Show file tree
Hide file tree
Showing 69 changed files with 22 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,14 @@ workflows:
device: "iPhone 14 Pro Max"
codecoverage: false
context: Slack Orb
- build-job:
name: "Xcode_15.2_iOS_17.2_SPM_Debug"
xcode: "15.2"
iOS: "17.2"
device: "iPhone 15 Pro Max"
spm: true
codecoverage: true
context: Slack Orb
- build-job:
name: "Xcode_14.1_iOS_16.1_SPM_Debug"
xcode: "14.1"
Expand Down
23 changes: 14 additions & 9 deletions Tests/MapboxCoreNavigationTests/NavigationStatusTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,20 @@ final class NavigationStatusTests: TestCase {
XCTAssertNil(representation1.shield)
XCTAssertNil(representation1.imageBaseURL)

let shield2 = Shield(baseUrl: "|||", displayRef: "ref", name: "shield", textColor: "")
let roadNonValidImageBaseUrlString = RoadName(text: "name",
language: "",
imageBaseUrl: "|||",
shield: shield2)
let status2 = status(with: [roadNonValidImageBaseUrlString])
let representation2 = status2.routeShieldRepresentation
XCTAssertNil(representation2.shield)
XCTAssertNil(representation2.imageBaseURL)
if #available(iOS 17.0, *) {
// These URLs are considered valid on iOS 17+
// https://developer.apple.com/documentation/foundation/url/3126806-init
} else {
let shield2 = Shield(baseUrl: "|||", displayRef: "ref", name: "shield", textColor: "")
let roadNonValidImageBaseUrlString = RoadName(text: "name",
language: "",
imageBaseUrl: "|||",
shield: shield2)
let status2 = status(with: [roadNonValidImageBaseUrlString])
let representation2 = status2.routeShieldRepresentation
XCTAssertNil(representation2.shield)
XCTAssertNil(representation2.imageBaseURL)
}

let shield3 = Shield(baseUrl: "", displayRef: "ref", name: "shield", textColor: "")
let roadEmptyImageBaseUrlString = RoadName(text: "name",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7f0ead7

Please sign in to comment.