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.
This commit is contained in:
dotCooCoo
2026-11-16 12:42:27 -08:00
parent bffbf22ff8
commit 9adda33c8c
+3 -3
View File
@@ -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![]);