mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 15:26:12 +00:00
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:
@@ -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![]);
|
||||
|
||||
Reference in New Issue
Block a user