summaryrefslogtreecommitdiff
path: root/HutchTests
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-20 12:31:57 -0500
committerChristian Cleberg <[email protected]>2026-04-20 12:31:57 -0500
commit32c0e55b0713a15094c1640e7af70e0ed19d78d6 (patch)
tree0b9537e1dfbcc341f29110766eb39255ff67da17 /HutchTests
parent3272d0674dedf8cc864c50e6bdc430b26d5fbba6 (diff)
downloadhutch-32c0e55b0713a15094c1640e7af70e0ed19d78d6.tar.gz
hutch-32c0e55b0713a15094c1640e7af70e0ed19d78d6.tar.bz2
hutch-32c0e55b0713a15094c1640e7af70e0ed19d78d6.zip
fix: change failed builds card on home tab to navigate to builds tab instead of implementing its own view
Fixes: https://todo.sr.ht/~ccleberg/hutch/66
Diffstat (limited to 'HutchTests')
-rw-r--r--HutchTests/AppStateTests.swift11
1 files changed, 11 insertions, 0 deletions
diff --git a/HutchTests/AppStateTests.swift b/HutchTests/AppStateTests.swift
index a5661ef..45812ed 100644
--- a/HutchTests/AppStateTests.swift
+++ b/HutchTests/AppStateTests.swift
@@ -36,6 +36,17 @@ struct AppStateTests {
@Test
@MainActor
+ func navigateToBuildsListSelectsBuildsTabAndQueuesBuildsNavigation() {
+ let appState = AppState()
+
+ appState.navigateToBuildsList()
+
+ #expect(appState.selectedTab == .builds)
+ #expect(appState.pendingTabNavigation == .builds)
+ }
+
+ @Test
+ @MainActor
func navigationHelpersQueueExpectedTargets() {
let appState = AppState()
let repository = RepositorySummary(