mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-30 22:10:04 +00:00
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 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c37c64d0b6
commit
bd1a419636
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user