mirror of
https://github.com/openai/codex.git
synced 2026-11-30 00:10:49 +00:00
test(tui): update keymap copy snapshots
Use a non-copy chord in the queue shadowing regression test so it still reaches the intended composer conflict after `global.copy` claimed `ctrl-o`. Accept the keymap picker snapshots now that Copy is part of the configurable global keymap actions.
This commit is contained in:
@@ -1187,8 +1187,8 @@ mod tests {
|
||||
#[test]
|
||||
fn rejects_shadowing_composer_queue_in_app_scope() {
|
||||
let mut keymap = TuiKeymap::default();
|
||||
keymap.global.open_external_editor = Some(one("ctrl-o"));
|
||||
keymap.composer.queue = Some(one("ctrl-o"));
|
||||
keymap.global.open_external_editor = Some(one("ctrl-l"));
|
||||
keymap.composer.queue = Some(one("ctrl-l"));
|
||||
|
||||
let err = RuntimeKeymap::from_config(&keymap).expect_err("expected shadowing conflict");
|
||||
assert!(err.contains("composer.queue"));
|
||||
|
||||
Reference in New Issue
Block a user