summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/tabs_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-26 22:59:16 +0200
committerPaul Buetow <paul@buetow.org>2026-02-26 22:59:16 +0200
commitdc7478d7dadf544787a9718608f11312bd2ea944 (patch)
treedc445798ab132e08d8885672fcca0a37facd25ea /internal/tui/dashboard/tabs_test.go
parent39a11ed5997a3829751dfbe4b666d3568d466276 (diff)
tui: revamp status keys and add pid/tid reselection flow
Diffstat (limited to 'internal/tui/dashboard/tabs_test.go')
-rw-r--r--internal/tui/dashboard/tabs_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/tui/dashboard/tabs_test.go b/internal/tui/dashboard/tabs_test.go
index bf96864..a457153 100644
--- a/internal/tui/dashboard/tabs_test.go
+++ b/internal/tui/dashboard/tabs_test.go
@@ -39,10 +39,10 @@ func TestRenderTabBarSmallWidthUsesSingleLine(t *testing.T) {
}
}
-func TestRenderHelpBarSmallWidthUsesSingleLine(t *testing.T) {
+func TestRenderHelpBarSmallWidthCanWrapToTwoLines(t *testing.T) {
out := renderHelpBar(common.DefaultKeyMap(), 70)
lines := strings.Split(out, "\n")
- if len(lines) != 1 {
- t.Fatalf("expected single-line help bar at width 70, got %d lines", len(lines))
+ if len(lines) < 1 || len(lines) > 2 {
+ t.Fatalf("expected one or two help bar lines at width 70, got %d lines", len(lines))
}
}