mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Update the project for Xcode 16.4 (#4277)
This commit is contained in:
@@ -16,7 +16,7 @@ import XCTest
|
|||||||
class PreviewTests: XCTestCase {
|
class PreviewTests: XCTestCase {
|
||||||
private let deviceConfig: ViewImageConfig = .iPhoneX
|
private let deviceConfig: ViewImageConfig = .iPhoneX
|
||||||
private let simulatorDevice: String? = "iPhone14,6" // iPhone SE 3rd Generation
|
private let simulatorDevice: String? = "iPhone14,6" // iPhone SE 3rd Generation
|
||||||
private let requiredOSVersion = (major: 18, minor: 4)
|
private let requiredOSVersion = (major: 18, minor: 5)
|
||||||
private let snapshotDevices = ["iPhone 16", "iPad"]
|
private let snapshotDevices = ["iPhone 16", "iPad"]
|
||||||
private var recordMode: SnapshotTestingConfiguration.Record = .missing
|
private var recordMode: SnapshotTestingConfiguration.Record = .missing
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ enum Application {
|
|||||||
guard deviceModel == requirediPhoneSimulator || deviceModel == requirediPadSimulator else {
|
guard deviceModel == requirediPhoneSimulator || deviceModel == requirediPadSimulator else {
|
||||||
fatalError("Running on \(deviceModel) but we only support \(requirediPhoneSimulator) and \(requirediPadSimulator).")
|
fatalError("Running on \(deviceModel) but we only support \(requirediPhoneSimulator) and \(requirediPadSimulator).")
|
||||||
}
|
}
|
||||||
guard UIDevice.current.snapshotName == "iPhone-18.4" || UIDevice.current.snapshotName == "iPad-18.4" else {
|
guard UIDevice.current.snapshotName == "iPhone-18.5" || UIDevice.current.snapshotName == "iPad-18.5" else {
|
||||||
fatalError("Running on a simulator that hasn't been renamed to match the expected snapshot filenames.")
|
fatalError("Running on a simulator that hasn't been renamed to match the expected snapshot filenames.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user