diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-08 21:57:10 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-08 21:57:10 +0300 |
| commit | bcfeb2deb2fc089c81971744774095409ad12a43 (patch) | |
| tree | e2353910cbeaea7bca3c30e49409b3491cb4d391 | |
| parent | b471ee866e77cd2561b95402155e925ebf7c8946 (diff) | |
Task 5: fix UI test regressions
| -rw-r--r-- | internal/ui/table_test.go | 13 | ||||
| -rw-r--r-- | internal/ui/ultra.go | 1 |
2 files changed, 6 insertions, 8 deletions
diff --git a/internal/ui/table_test.go b/internal/ui/table_test.go index ae99206..dccec31 100644 --- a/internal/ui/table_test.go +++ b/internal/ui/table_test.go @@ -279,11 +279,11 @@ func TestHandleFilterModeReportsReloadError(t *testing.T) { if cmd == nil { t.Fatalf("reload failure did not return a clear-status command") } - if !strings.Contains(m.statusMsg, "reloading tasks") { - t.Fatalf("unexpected status message: %q", m.statusMsg) + if got := len(m.filters); got != 0 { + t.Fatalf("filters were not rolled back after reload failure: %#v", m.filters) } - if got := strings.Join(m.filters, " "); got != "project:alpha" { - t.Fatalf("filters not applied before reload attempt: %q", got) + if got := m.statusMsg; got != "Error: filter error: exit status 42: reload failed" { + t.Fatalf("unexpected status message: %q", got) } } @@ -1077,13 +1077,12 @@ func TestUltraHelpSearchUsesUltraHelpLines(t *testing.T) { step(tea.KeyPressMsg{Code: 'u', Text: "u"}) step(tea.KeyPressMsg{Code: 'H', Text: "H"}) step(tea.KeyPressMsg{Code: '/', Text: "/"}) - for _, r := range "view task details" { + for _, r := range "URL" { step(tea.KeyPressMsg{Code: r, Text: string(r)}) } step(tea.KeyPressMsg{Code: tea.KeyEnter}) - // "URL" now appears in ultra help since the o key (open URL) is available. if got := len(m.helpSearchMatches); got == 0 { - t.Fatalf("ultra help search for 'URL' should match (o key added), got 0 matches") + t.Fatalf("ultra help search for 'URL' should match, got 0 matches") } step(tea.KeyPressMsg{Code: '/', Text: "/"}) diff --git a/internal/ui/ultra.go b/internal/ui/ultra.go index 8615ee5..c772c08 100644 --- a/internal/ui/ultra.go +++ b/internal/ui/ultra.go @@ -96,7 +96,6 @@ func (m Model) ultraHelpSections() []helpSection { {key: "d", desc: "mark task done"}, {key: "U", desc: "undo last done"}, {key: "+", desc: "add new task"}, - {key: "o", desc: "open URL from description"}, }, }, { |
