summaryrefslogtreecommitdiff
path: root/internal/tui/tui_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-26 22:18:44 +0200
committerPaul Buetow <paul@buetow.org>2026-02-26 22:18:44 +0200
commit0110c0568f7737c44db5f0134c376a978b5159b9 (patch)
tree3e93959a875946582919d8357846b2e75cfddf46 /internal/tui/tui_test.go
parenta5f53e8f5c90956f0aaed13aa79fc5ccb1d6bc15 (diff)
tui: fix and widen help overlay
Diffstat (limited to 'internal/tui/tui_test.go')
-rw-r--r--internal/tui/tui_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/tui/tui_test.go b/internal/tui/tui_test.go
index 31a2e94..d9a69a5 100644
--- a/internal/tui/tui_test.go
+++ b/internal/tui/tui_test.go
@@ -385,6 +385,9 @@ func TestViewShowsHelpOverlay(t *testing.T) {
if !strings.Contains(out, "tab next tab") {
t.Fatalf("expected keybinding text in overlay")
}
+ if strings.Contains(out, "Overview: waiting for stats") {
+ t.Fatalf("expected help overlay to render without stacking dashboard content")
+ }
}
func TestHelpOverlayBlocksUnderlyingActions(t *testing.T) {
@@ -413,6 +416,9 @@ func TestHelpOverlayUsesPickerBindingsOnPickerScreen(t *testing.T) {
if strings.Contains(out, "e export") {
t.Fatalf("did not expect dashboard-only shortcut in picker help overlay")
}
+ if strings.Contains(out, "Select PID to trace") {
+ t.Fatalf("expected help overlay to render without stacking picker content")
+ }
}
func TestHelpToggleDoesNotBreakExportModalInput(t *testing.T) {