From 6d9f6db23d2efac0dc1b717b375dca285f9611e5 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 13 Oct 2026 14:50:21 +0000 Subject: [PATCH] test(story-editor): find the editor by its text input role --- crates/ui-egui/src/story_editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/story_editor.rs b/crates/ui-egui/src/story_editor.rs index cf9fd0d2d..680aaea21 100644 --- a/crates/ui-egui/src/story_editor.rs +++ b/crates/ui-egui/src/story_editor.rs @@ -137,7 +137,7 @@ mod tests { app.run("file.activate", json!({"index": 0})).unwrap(); app.run("app.storyEditor", json!({"story": stories[0]})).unwrap(); let mut h = crate::test_window::open(app, egui::vec2(1440.0, 900.0)); - h.get_by_value("Alpha story").focus(); + h.get_by(|n| n.role() == egui::accesskit::Role::MultilineTextInput && n.value().as_deref() == Some("Alpha story")).focus(); h.run_steps(2); h.event(egui::Event::Text("!".into())); h.run_steps(2);