mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
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:
@@ -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", &[])
|
||||
|
||||
Reference in New Issue
Block a user