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

This commit is contained in:
bflatastic
2026-11-23 16:17:14 +07:00
parent 71ba9be3bf
commit bee4b599cf
+3 -1
View File
@@ -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();