mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 19:04:25 +01:00
Command Palette: the recent-pick ranking test checks that the second Enter runs the effect
The test asserted only the recent list, which already held the effect, so a refused second pick would also have passed. It now checks that the effect's dialog opens.
This commit is contained in:
1 parent
b4ae645caf
commit
b11e910baf
1 file changed
+2
-1
@@ -1532,7 +1532,8 @@ mod tests {
|
||||
let label = entries.iter().find(|e| e.id == effect).map(row_label).unwrap();
|
||||
assert_eq!(field_description(&nodes), format!("1 of {}: {label}", after.len()));
|
||||
open.press(egui::Key::Enter, 1);
|
||||
assert_eq!(open.app.ui.recent_commands, [effect], "Enter ran the effect again");
|
||||
assert!(open.app.ui.dialog.is_some(), "Enter ran the effect again: {}", open.app.ui.status);
|
||||
assert_eq!(open.app.ui.recent_commands, [effect]);
|
||||
}
|
||||
|
||||
/// The kept ranking of a query is ranked again when the recent picks change, and a saved id
|
||||
|
||||
Reference in new issue
Block a user