Consolidate TUI tests and prune snapshots (#64232)

## What changed

- Use table-driven tests for Markdown file links, credit display, and text
  truncation so related cases share setup and assertions.
- Combine checks for history search deduplication and boundaries, Vim cursor
  movement with arrow keys and `hjkl`, and status-line previews that mix runtime
  values with placeholders.
- Remove standalone tests and snapshots, including the Windows paused-goal
  footer snapshot, while retaining the test that checks Esc pauses the goal.

GitOrigin-RevId: b508e7d46e81451186b04d4d9e9d3557596e04c3
This commit is contained in:
Eric Traut
2026-11-26 22:54:05 +00:00
committed by copyberry
parent 588439645d
commit b9e830fb98
26 changed files with 82 additions and 891 deletions
-13
View File
@@ -1382,19 +1382,6 @@ mod tests {
);
}
#[test]
fn picker_narrow_uses_compact_tabs() {
let runtime = RuntimeKeymap::defaults();
let params = build_keymap_picker_params(&runtime, &TuiKeymap::default());
let rendered = render_picker(params, /*width*/ 78);
assert!(rendered.contains("Keymap"));
assert!(rendered.contains("Open Transcript"));
assert!(rendered.contains("ctrl-t"));
assert!(!rendered.contains("Selected Action"));
assert!(!rendered.contains("Source: default keymap"));
}
#[test]
fn action_menu_content_snapshot() {
let unbound_keymap = keymap_with_bindings(&TuiKeymap::default(), "global", "copy", &[])