support for UI tests on Xcode 16.3

This commit is contained in:
Mauro
2025-04-17 15:18:37 +02:00
committed by GitHub
parent 308d7bad30
commit 4179f56633
233 changed files with 128 additions and 123 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
// Please see LICENSE files in the repository root for full details.
//
import SnapshotTesting
import SnapshotUITesting
import XCTest
enum Application {
@@ -47,7 +47,7 @@ enum Application {
guard deviceModel == requirediPhoneSimulator || deviceModel == requirediPadSimulator else {
fatalError("Running on \(deviceModel) but we only support \(requirediPhoneSimulator) and \(requirediPadSimulator).")
}
guard UIDevice.current.snapshotName == "iPhone-18.1" || UIDevice.current.snapshotName == "iPad-18.1" else {
guard UIDevice.current.snapshotName == "iPhone-18.4" || UIDevice.current.snapshotName == "iPad-18.4" else {
fatalError("Running on a simulator that hasn't been renamed to match the expected snapshot filenames.")
}
}