test: reset context menu before native teardown

This commit is contained in:
GeekMr committed 2026-09-25 00:19:40 +08:00
1 parent 101e85a972
commit fb2af4f620
1 file changed
+9
@@ -197,6 +197,15 @@ fn native_ssh_copy_context_menu_preview() {
let _ = cx.update_window(handle.into(), |_, window, cx| {
pane.update(cx, |pane, cx| pane.close_ssh_editor(window, cx));
let _ = window.draw(cx);
window.dispatch_event(
gpui::PlatformInput::MouseMove(gpui::MouseMoveEvent {
position: point(px(300.0), px(220.0)),
pressed_button: None,
modifiers: gpui::Modifiers::default(),
}),
cx,
);
window.dispatch_event(
gpui::PlatformInput::MouseDown(gpui::MouseDownEvent {
position: point(px(300.0), px(220.0)),