From bee4b599cf75e7204e70e74959c741c8eaefe79c Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 23 Nov 2026 16:17:14 +0700 Subject: [PATCH] Tests: the task bar's field entry selects the whole field after its click, since a popover gives its first field the keyboard as it opens and a click there places the caret --- crates/ui-egui/src/tests/taskbar.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/tests/taskbar.rs b/crates/ui-egui/src/tests/taskbar.rs index 1b84263648..27d5b409e0 100644 --- a/crates/ui-egui/src/tests/taskbar.rs +++ b/crates/ui-egui/src/tests/taskbar.rs @@ -130,7 +130,9 @@ impl Rig { fn enter_value(&mut self, at: Pos2, value: &str) { self.fx.click_at(at); - // The click selected the whole field, so the text typed replaces it. + // A click on a field that already has the keyboard (a popover gives its first field the keyboard as it + // opens) places the caret: the whole field is selected, so the text typed replaces it. + self.fx.key(Key::A, Modifiers::COMMAND); self.fx.type_text(value); self.fx.key(Key::Enter, Modifiers::NONE); self.settle();