Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions ios/epac.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
A3DEAD0BEEF00000CAFE0007 /* Evidence in Frameworks */ = {isa = PBXBuildFile; productRef = A3DEAD0BEEF00000CAFE0008 /* Evidence */; };
A327A9202D18F75B00A2D292 /* epac-clip.app in Embed App Clips */ = {isa = PBXBuildFile; fileRef = A327A91F2D18F75B00A2D292 /* epac-clip.app */; platformFilters = (ios, ); settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
A34F7CD22D13ADD70004C905 /* ActivityView in Frameworks */ = {isa = PBXBuildFile; productRef = A34F7CD12D13ADD70004C905 /* ActivityView */; };
A366154B2D0A24DD00A3FBF7 /* Kanna in Frameworks */ = {isa = PBXBuildFile; productRef = A366154A2D0A24DD00A3FBF7 /* Kanna */; };
Expand Down Expand Up @@ -178,6 +179,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A3DEAD0BEEF00000CAFE0007 /* Evidence in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -367,6 +369,7 @@
);
name = epacUITests;
packageProductDependencies = (
A3DEAD0BEEF00000CAFE0008 /* Evidence */,
);
productName = epacUITests;
productReference = A38427E02D062C8E00271C34 /* epacUITests.xctest */;
Expand Down Expand Up @@ -477,6 +480,7 @@
mainGroup = A38427BA2D062C8D00271C34;
minimizedProjectReferenceProxies = 1;
packageReferences = (
A3DEAD0BEEF00000CAFE0009 /* XCRemoteSwiftPackageReference "evidence" */,
A36615492D0A24DD00A3FBF7 /* XCRemoteSwiftPackageReference "Kanna" */,
A36615822D0A261300A3FBF7 /* XCRemoteSwiftPackageReference "SWXMLHash" */,
A34F7CD02D13ADD70004C905 /* XCRemoteSwiftPackageReference "ActivityView" */,
Expand Down Expand Up @@ -1171,6 +1175,14 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
A3DEAD0BEEF00000CAFE0009 /* XCRemoteSwiftPackageReference "evidence" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/RiddimSoftware/evidence";
requirement = {
branch = main;
kind = branch;
};
};
A3FADE01DEAD00001DEAD001 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/pointfreeco/swift-snapshot-testing";
Expand Down Expand Up @@ -1238,6 +1250,11 @@
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
A3DEAD0BEEF00000CAFE0008 /* Evidence */ = {
isa = XCSwiftPackageProductDependency;
package = A3DEAD0BEEF00000CAFE0009 /* XCRemoteSwiftPackageReference "evidence" */;
productName = Evidence;
};
A33253CD2F2852E500531242 /* ExyteChat */ = {
isa = XCSwiftPackageProductDependency;
package = A33253CC2F2852E500531242 /* XCRemoteSwiftPackageReference "Chat" */;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions ios/epacUITests/EvidencePlanXCUITests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import XCTest
import Evidence

Check warning on line 2 in ios/epacUITests/EvidencePlanXCUITests.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Imports should be sorted (sorted_imports)

final class EvidencePlanXCUITests: XCTestCase {
func testRunEvidencePlan() throws {
let app = XCUIApplication()

// Auto-dismiss the "Open in epac?" system handoff dialog.
// Prototyping with simctl showed that universal-link openURL steps trigger an
// "Open in epac?" handoff dialog that contaminates subsequent screenshots.
// By using XCTest here, we can automatically dismiss it.
addUIInterruptionMonitor(withDescription: "Universal link handoff") { alert in
let openButton = alert.buttons["Open"]
if openButton.exists {
openButton.tap()
return true
}
return false
}

try EvidencePlanRunner.runFromEnvironment(on: app)
}
}
Loading