From 5a8f119a70d59c050b98bde02a0a998f9ff37985 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 20 Oct 2026 21:30:40 +0000 Subject: [PATCH] keymap ui: test that one pointer click on another row's chip records --- crates/keymap/tests/ui_dialog.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/crates/keymap/tests/ui_dialog.rs b/crates/keymap/tests/ui_dialog.rs index d393a609..35c69914 100644 --- a/crates/keymap/tests/ui_dialog.rs +++ b/crates/keymap/tests/ui_dialog.rs @@ -999,3 +999,19 @@ fn an_app_error_shows_until_dismissed() { click(&mut h, "Dismiss"); assert!(!has(&h, "⚠ The file could not be read")); } + +#[test] +fn one_pointer_click_on_a_chip_of_another_row_records() { + let mut h = mac(); + click(&mut h, "Save"); + let c = h.get_by_label("Export…: ⌘E").rect().center(); + let at = egui::pos2(c.x as f32, c.y as f32); + h.event(Event::PointerMoved(at)); + h.run(); + for pressed in [true, false] { + h.event(Event::PointerButton { pos: at, button: egui::PointerButton::Primary, pressed, modifiers: Modifiers::NONE }); + h.step(); + } + h.run(); + assert!(has(&h, "Export…: press keys")); +}