summaryrefslogtreecommitdiff
path: root/HutchTests/HutchIntentsTests.swift
diff options
context:
space:
mode:
Diffstat (limited to 'HutchTests/HutchIntentsTests.swift')
-rw-r--r--HutchTests/HutchIntentsTests.swift9
1 files changed, 9 insertions, 0 deletions
diff --git a/HutchTests/HutchIntentsTests.swift b/HutchTests/HutchIntentsTests.swift
index 3cb7ad6..ddbe973 100644
--- a/HutchTests/HutchIntentsTests.swift
+++ b/HutchTests/HutchIntentsTests.swift
@@ -6,6 +6,15 @@ import Testing
struct HutchIntentsTests {
@Test
+ func navigationIntentsMapToCentralRoutes() {
+ #expect(OpenWorkQueueIntent().route == .workQueue(scope: .all))
+ #expect(OpenRecentActivityIntent().route == .recentActivity)
+ #expect(OpenSystemStatusIntent().route == .systemStatus)
+ #expect(OpenFailedBuildsIntent().route == .failedBuilds)
+ #expect(OpenAssignedTicketsIntent().route == .workQueue(scope: .assigned))
+ }
+
+ @Test
func checkSystemStatusReturnsOperationalWhenNoDisruption() async throws {
let defaultsName = "HutchIntentsTests-status-\(UUID().uuidString)"
let defaults = UserDefaults(suiteName: defaultsName)!