ime_tests: the About route reads the hosted About's key, help.about

The port's About is the framework's HostedAbout (ui-patterns form_dialogs/about.rs), which
the request id "about" opens under the key help.about. The route still checks that an open
modal makes the canvas editor ineligible for IME.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Dylan M. Taylor
2026-11-28 01:52:02 +00:00
co-authored by Claude Opus 5.5
parent c37c64d0b6
commit bd1a419636
+2 -1
View File
@@ -176,7 +176,8 @@ fn opening_backstage_palette_and_modal_routes_are_explicitly_ineligible() {
1 => h.state_mut().close_backstage(),
2 => h.state_mut().palette_open = false,
_ => {
assert!(crate::dialogs::open_keys(&h.ctx).iter().any(|key| key == "about"));
// The request id "about" opens the framework's hosted About, keyed "help.about".
assert!(crate::dialogs::open_keys(&h.ctx).iter().any(|key| key == "help.about"));
let id = crate::dialogs::top_dialog(&h.ctx).unwrap();
assert!(WindowDialogs::of(&h.ctx, &WindowKey::main()).with(|host| host.cancel_by_id(&h.ctx, id)));
}