DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
test(story-editor): find the editor by its text input role
aiongg6d9f6db23d2e
diff --git a/crates/ui-egui/src/story_editor.rs b/crates/ui-egui/src/story_editor.rsindex 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);