From 29aaadf5eb34af94ede44a06c9cc644ea4113c94 Mon Sep 17 00:00:00 2001 From: giswqs Date: Thu, 22 Oct 2026 15:46:13 -0400 Subject: [PATCH] test(ui): let the connection context menu settle before clicking Remove The menu lays out again on its second frame, moving Remove down; a click aimed at the first layout lands between items on some font setups (Windows CI), so step a few frames first. --- crates/ui-egui/tests/smoke.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/tests/smoke.rs b/crates/ui-egui/tests/smoke.rs index a2c79dcc6..76cf33860 100644 --- a/crates/ui-egui/tests/smoke.rs +++ b/crates/ui-egui/tests/smoke.rs @@ -1556,7 +1556,10 @@ fn connections_section_and_dialog() { h.step(); h.step(); h.get_by_label("Local").click_secondary(); - h.step(); + // The menu settles over a few frames; clicking its first layout can miss "Remove". + for _ in 0..4 { + h.step(); + } h.get_by_label("Remove").click(); h.step(); assert!(h.state().session.connections.find("Local").is_none());