support for UI tests on Xcode 16.3
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
dependencies = (
|
||||
);
|
||||
name = Periphery;
|
||||
packageProductDependencies = (
|
||||
);
|
||||
productName = Periphery;
|
||||
};
|
||||
/* End PBXAggregateTarget section */
|
||||
@@ -1207,7 +1209,7 @@
|
||||
F08F7BC07CA9AEF5CD157918 /* Snapshotting.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF17EA323AD0205A6AB621AA /* Snapshotting.swift */; };
|
||||
F0A26CD502C3A5868353B0FA /* ServerConfirmationScreenViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24DEE0682C95F897B6C7CB0D /* ServerConfirmationScreenViewModel.swift */; };
|
||||
F0DACC95F24128A54CD537E4 /* GlobalSearchScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24B8177BD2AF45A286F5DA31 /* GlobalSearchScreen.swift */; };
|
||||
F0F82C3C848C865C3098AA52 /* SnapshotTesting in Frameworks */ = {isa = PBXBuildFile; productRef = 21C83087604B154AA30E9A8F /* SnapshotTesting */; };
|
||||
F0F82C3C848C865C3098AA52 /* SnapshotUITesting in Frameworks */ = {isa = PBXBuildFile; productRef = 4D8A8AC5F38942DAD76E02A3 /* SnapshotUITesting */; };
|
||||
F103924DED414ADFE398CE99 /* RoomPollsHistoryScreenViewModelProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = A130A2251A15A7AACC84FD37 /* RoomPollsHistoryScreenViewModelProtocol.swift */; };
|
||||
F118DD449066E594F63C697D /* RoomMemberProxyProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32B5E17028C02DFA7DDA3931 /* RoomMemberProxyProtocol.swift */; };
|
||||
F12F6BED7B6D7EE4BEE55039 /* PlainMentionBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8AE78FA0011E07920AE83135 /* PlainMentionBuilder.swift */; };
|
||||
@@ -2665,7 +2667,7 @@
|
||||
29EE1791E0AFA1ABB7F23D2F /* SwiftState in Frameworks */,
|
||||
33CAC1226DFB8B5D8447D286 /* GZIP in Frameworks */,
|
||||
492274DA6691EE985C2FCCAA /* Sentry in Frameworks */,
|
||||
F0F82C3C848C865C3098AA52 /* SnapshotTesting in Frameworks */,
|
||||
F0F82C3C848C865C3098AA52 /* SnapshotUITesting in Frameworks */,
|
||||
3A64A93A651A3CB8774ADE8E /* Collections in Frameworks */,
|
||||
3F327A62D233933F54F0F33A /* SwiftOGG in Frameworks */,
|
||||
);
|
||||
@@ -6148,7 +6150,7 @@
|
||||
3853B78FB8531B83936C5DA6 /* SwiftState */,
|
||||
1BCD21310B997A6837B854D6 /* GZIP */,
|
||||
67E7A6F388D3BF85767609D9 /* Sentry */,
|
||||
21C83087604B154AA30E9A8F /* SnapshotTesting */,
|
||||
4D8A8AC5F38942DAD76E02A3 /* SnapshotUITesting */,
|
||||
BA93CD75CCE486660C9040BD /* Collections */,
|
||||
3FE40E79C36E7903121E6E3B /* SwiftOGG */,
|
||||
);
|
||||
@@ -6409,6 +6411,7 @@
|
||||
"zh-Hant-TW",
|
||||
);
|
||||
mainGroup = 405B00F139AEE3994601B36A;
|
||||
minimizedProjectReferenceProxies = 1;
|
||||
packageReferences = (
|
||||
E025F19D013D9BA6C58B37F4 /* XCRemoteSwiftPackageReference "swift-algorithms" */,
|
||||
AC3475112CA40C2C6E78D1EB /* XCRemoteSwiftPackageReference "matrix-analytics-events" */,
|
||||
@@ -6435,6 +6438,7 @@
|
||||
EC6D0C817B1C21D9D096505A /* XCRemoteSwiftPackageReference "Version" */,
|
||||
EE40B0E16A55BD23ECBFFD22 /* XCRemoteSwiftPackageReference "matrix-rich-text-editor-swift" */,
|
||||
);
|
||||
preferredProjectObjectVersion = 54;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
@@ -8758,8 +8762,8 @@
|
||||
isa = XCRemoteSwiftPackageReference;
|
||||
repositoryURL = "https://github.com/pointfreeco/swift-snapshot-testing";
|
||||
requirement = {
|
||||
kind = upToNextMinorVersion;
|
||||
minimumVersion = 1.18.3;
|
||||
kind = revision;
|
||||
revision = b467f413c83e2ceba59ba798583a1c57db9700cb;
|
||||
};
|
||||
};
|
||||
EC6D0C817B1C21D9D096505A /* XCRemoteSwiftPackageReference "Version" */ = {
|
||||
@@ -8832,11 +8836,6 @@
|
||||
package = 701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */;
|
||||
productName = GZIP;
|
||||
};
|
||||
21C83087604B154AA30E9A8F /* SnapshotTesting */ = {
|
||||
isa = XCSwiftPackageProductDependency;
|
||||
package = E9C4F3A12AA1F65C13A8C8EB /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */;
|
||||
productName = SnapshotTesting;
|
||||
};
|
||||
290FDEDA4D764B9F7EBE55A9 /* Algorithms */ = {
|
||||
isa = XCSwiftPackageProductDependency;
|
||||
package = E025F19D013D9BA6C58B37F4 /* XCRemoteSwiftPackageReference "swift-algorithms" */;
|
||||
@@ -8912,6 +8911,11 @@
|
||||
package = 96495DD8554E2F39D3954354 /* XCRemoteSwiftPackageReference "posthog-ios" */;
|
||||
productName = PostHog;
|
||||
};
|
||||
4D8A8AC5F38942DAD76E02A3 /* SnapshotUITesting */ = {
|
||||
isa = XCSwiftPackageProductDependency;
|
||||
package = E9C4F3A12AA1F65C13A8C8EB /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */;
|
||||
productName = SnapshotUITesting;
|
||||
};
|
||||
50009897F60FAE7D63EF5E5B /* Kingfisher */ = {
|
||||
isa = XCSwiftPackageProductDependency;
|
||||
package = D283517192CAC3E2E6920765 /* XCRemoteSwiftPackageReference "Kingfisher" */;
|
||||
|
||||
@@ -257,8 +257,7 @@
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/pointfreeco/swift-snapshot-testing",
|
||||
"state" : {
|
||||
"revision" : "1be8144023c367c5de701a6313ed29a3a10bf59b",
|
||||
"version" : "1.18.3"
|
||||
"revision" : "b467f413c83e2ceba59ba798583a1c57db9700cb"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -302,8 +301,8 @@
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
|
||||
"state" : {
|
||||
"revision" : "39de59b2d47f7ef3ca88a039dff3084688fe27f4",
|
||||
"version" : "1.5.2"
|
||||
"branch" : "test-traits",
|
||||
"revision" : "ccc75ae935e2fee1b2c7d8040c21538def4310d8"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -10,7 +10,7 @@ import SwiftUI
|
||||
import XCTest
|
||||
|
||||
@testable import ElementX
|
||||
@testable import SnapshotTesting
|
||||
@testable import SnapshotTestingCore
|
||||
|
||||
@MainActor
|
||||
class PreviewTests: XCTestCase {
|
||||
|
||||
@@ -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.")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:67c559de04b481b370c3f02e4ad737403f393691cef4cb5ef9362a2946bc8adb
|
||||
size 1298585
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0dd48f840328c7e711b5c8bc749de2a5846ddefeee2805d17e7317cb6c04b3f2
|
||||
size 1381038
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2129e9965746b2c46997831bfccfaf2ccc95d0a5a0087c14520cd33d910972c5
|
||||
size 948014
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:39d24a63499d5230527abae3671cb640570a361f43dfd19f2244c43e8d48a980
|
||||
size 1106309
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:67c559de04b481b370c3f02e4ad737403f393691cef4cb5ef9362a2946bc8adb
|
||||
size 1298585
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0dd48f840328c7e711b5c8bc749de2a5846ddefeee2805d17e7317cb6c04b3f2
|
||||
size 1381038
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2129e9965746b2c46997831bfccfaf2ccc95d0a5a0087c14520cd33d910972c5
|
||||
size 948014
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:39d24a63499d5230527abae3671cb640570a361f43dfd19f2244c43e8d48a980
|
||||
size 1106309
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:befa476bc2cf2c6b8e3e7670fa9c0a8eb672f8b91301e1bdb1e84634af41e1cb
|
||||
size 139690
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:08bd938da6ac04092d0845cfd5a68091097612b9905647c8aecda3f07c734532
|
||||
size 139697
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4f3aa49a3e21a62edf61d697972b7d40ccf987198ea5047ecb7635d8c3932b69
|
||||
size 82727
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5fcf767875b6a67989634e7830ed8badecf5c2673aa5714b965f5a544273c5d7
|
||||
size 82724
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:befa476bc2cf2c6b8e3e7670fa9c0a8eb672f8b91301e1bdb1e84634af41e1cb
|
||||
size 139690
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:08bd938da6ac04092d0845cfd5a68091097612b9905647c8aecda3f07c734532
|
||||
size 139697
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4f3aa49a3e21a62edf61d697972b7d40ccf987198ea5047ecb7635d8c3932b69
|
||||
size 82727
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5fcf767875b6a67989634e7830ed8badecf5c2673aa5714b965f5a544273c5d7
|
||||
size 82724
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:835678f4881b61cc57a2695b9e55c401bf2f95adcfdc94c1448438ec4f2fd01e
|
||||
size 84623
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e32040efebca36f15b7036cefc12d13181f0b2000da70336a0a5467dba9ae43c
|
||||
size 85746
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:44652302192e3e5877eb731b05f710ce32663854f9eb6ba6a36ad2e0a0860b02
|
||||
size 87758
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e838ae4fdb30c47a9000d12919f506a186cfa3076105ba1c91193cca3851c774
|
||||
size 89386
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ca45475a92f7cf7e058e9e6aec7c1b8d71d2e5ec01304fa17c64a10fc9ece387
|
||||
size 167076
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c924623bddea7a119af06f6f23d02d0bde6d8f985beef112d472b3ba9442a6c4
|
||||
size 169766
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6b4b5b0b562fd610b3de3c7949ec39e28b1078ce59e54b515f256547386dcf48
|
||||
size 266822
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:279eeb4da25b02a5b7fa92ee00607b1bbc71f38ac4d5bd5f52f5b11ace8fa215
|
||||
size 268283
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a1e03d4f18b9c73c44b3ad75ee99bf8e66812b50f838abd4615dbca83552f859
|
||||
size 198664
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1fbd75e8de7ff04d33cb312ddf6e5a84de3ab4e2a512b765985a7f7481383f41
|
||||
size 203560
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4da56c6c60ba51cda29575222681b5224f757834cc7d732f28d8549dbbe7bf08
|
||||
size 174980
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8f27cdb8ab8f2a414ee5550a55cb83bcb8d34d16bab56ea945fe9dbf127a6ed1
|
||||
size 173967
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:252cc8fb0047c1848348e064d6f0489737ac43abdc72ecc7a65bc95a75a0725d
|
||||
size 122294
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e55c9f614b20a8c9b30a7765de9a25241ff5272e5f8c4ba03df2a2b80c5402a0
|
||||
size 120873
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5ea17d2f1bf968752ee2d68a758aae96f3acde1dc1c7fd0d7882be69716e133e
|
||||
size 139195
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8bef920b5e0192451300e0016cfdb0e8f83fca56b524f13fd23a198d2f9d0d90
|
||||
size 139194
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:eea2417904e097aa9335bccbaefd6997072b2522e96b8bd4805f67da6246c31a
|
||||
size 233050
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fecf32d396f817f6ce23b6ad6bd9f79125f18f763b3aae384b8772349d16fd78
|
||||
size 233050
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user