Merge branch 'port/deckcraft/red/red-fw-2b' into port/deckcraft/area/framework

This commit is contained in:
Dylan M. Taylor committed 2026-11-27 07:10:48 +00:00
commit bc81d34dc5
1 file changed
+3 -3
+3 -3
View File
@@ -16,7 +16,7 @@ struct Rig {
}
fn entries() -> Vec<HelpEntry> {
// The help rows show their command's label, so each entry has its own command.
// Help rows show their entry's label, which can differ from the command's label.
vec![
HelpEntry::new(EditCommands::Paste, "Café").with_path(["Edit"]),
HelpEntry::new(EditCommands::Copy, "Copy").with_english("Duplicate").with_path(["Edit"]),
@@ -60,11 +60,11 @@ fn help_search_ignores_accents_and_matches_the_english_label_and_the_path() {
rig.fixture.settle();
let search = rig.fixture.by_label("Search menus").expect("the search field");
rig.fixture.click(&search);
for (typed, found, absent) in [("cafe", "Paste", "Copy"), ("duplic", "Copy", "Paste"), ("clipboard", "Cut", "Copy")] {
for (typed, found, absent) in [("cafe", "Café", "Copy"), ("duplic", "Copy", "Café"), ("clipboard", "Cut", "Copy")] {
rig.fixture.key(Key::A, Modifiers::COMMAND);
rig.fixture.type_text(typed);
rig.fixture.settle();
assert!(rig.open(found), "{typed:?} finds the entry whose command row reads {found:?}");
assert!(rig.open(found), "{typed:?} finds the help entry labelled {found:?}");
assert!(!rig.open(absent), "{typed:?} leaves {absent:?} out");
}
}