From 9adda33c8c403aa9aaa8bc48ab317eb1071ff843 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Mon, 16 Nov 2026 12:42:27 -0800 Subject: [PATCH] Command palette: the opening-click test clicks the app bar's search field The test looked for the app bar's search icon by its old name. The bar now shows a search field named "Search commands" in its place, so the test finds and clicks the field. --- crates/ui-egui/src/palette.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/palette.rs b/crates/ui-egui/src/palette.rs index 544929a0e7..c6e1bf40f1 100644 --- a/crates/ui-egui/src/palette.rs +++ b/crates/ui-egui/src/palette.rs @@ -2487,13 +2487,13 @@ mod tests { } } - /// The click on the app bar's search button that opens the palette leaves it open; the next - /// click on the button closes it. + /// The click on the app bar's search field that opens the palette leaves it open; the next + /// click on the field closes it. #[test] fn the_click_that_opens_the_palette_does_not_close_it() { let mut window = Window::new(); let nodes = window.frame(vec![]); - let at = button_at(&nodes, "Search commands, tools, panels and effects"); + let at = button_at(&nodes, "Search commands"); window.click(at); assert!(window.app.ui.palette_open, "the click opens the palette"); window.frame(vec![]);