Update UI tests for Xcode 16.

This commit is contained in:
Doug 2024-09-18 12:19:41 +01:00 committed by Doug
parent e4736b12bb
commit 6818be1afc
117 changed files with 109 additions and 107 deletions

View File

@ -7867,7 +7867,7 @@
repositoryURL = "https://github.com/pointfreeco/swift-snapshot-testing";
requirement = {
kind = upToNextMinorVersion;
minimumVersion = 1.17.2;
minimumVersion = 1.17.5;
};
};
EC6D0C817B1C21D9D096505A /* XCRemoteSwiftPackageReference "Version" */ = {
@ -7883,7 +7883,7 @@
repositoryURL = "https://github.com/element-hq/compound-ios";
requirement = {
kind = revision;
revision = a9270392b3269ef072c47dea623815a9fb87311d;
revision = 0d6248492aa577b3747a34c50104cc738b628478;
};
};
F76A08D0EA29A07A54F4EB4D /* XCRemoteSwiftPackageReference "swift-collections" */ = {

View File

@ -15,7 +15,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/compound-ios",
"state" : {
"revision" : "a9270392b3269ef072c47dea623815a9fb87311d"
"revision" : "0d6248492aa577b3747a34c50104cc738b628478"
}
},
{
@ -248,8 +248,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-snapshot-testing",
"state" : {
"revision" : "6d932a79e7173b275b96c600c86c603cf84f153c",
"version" : "1.17.4"
"revision" : "7b0bbbae90c41f848f90ac7b4df6c4f50068256d",
"version" : "1.17.5"
}
},
{

View File

@ -28,18 +28,20 @@ enum Application {
}
private static func checkEnvironments() {
let requirediPhoneSimulator = "iPhone15,4" // iPhone 15
let requirediPhoneSimulator = "iPhone17,3" // iPhone 16
let requirediPadSimulator = "iPad13,18" // iPad (10th generation)
let requiredOSVersion = 17
let requiredOSVersion = 18
let osVersion = ProcessInfo().operatingSystemVersion
guard osVersion.majorVersion == requiredOSVersion else {
fatalError("Switch to iOS \(requiredOSVersion) for these tests.")
}
guard let deviceModel = ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"],
deviceModel == requirediPhoneSimulator || deviceModel == requirediPadSimulator else {
fatalError("Switch to using \(requirediPhoneSimulator) or \(requirediPadSimulator) for these tests.")
guard let deviceModel = ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] else {
fatalError("Unknown simulator.")
}
guard deviceModel == requirediPhoneSimulator || deviceModel == requirediPadSimulator else {
fatalError("Running on \(deviceModel) but we only support \(requirediPhoneSimulator) and \(requirediPadSimulator).")
}
}
}

Some files were not shown because too many files have changed in this diff Show More