From 32c0e55b0713a15094c1640e7af70e0ed19d78d6 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Mon, 20 Apr 2026 12:31:57 -0500 Subject: 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 --- HutchTests/AppStateTests.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'HutchTests') diff --git a/HutchTests/AppStateTests.swift b/HutchTests/AppStateTests.swift index a5661ef..45812ed 100644 --- a/HutchTests/AppStateTests.swift +++ b/HutchTests/AppStateTests.swift @@ -34,6 +34,17 @@ struct AppStateTests { #expect(appState.pendingTabNavigation == .systemStatus) } + @Test + @MainActor + func navigateToBuildsListSelectsBuildsTabAndQueuesBuildsNavigation() { + let appState = AppState() + + appState.navigateToBuildsList() + + #expect(appState.selectedTab == .builds) + #expect(appState.pendingTabNavigation == .builds) + } + @Test @MainActor func navigationHelpersQueueExpectedTargets() { -- cgit v1.2.3