diff --git a/crates/ui-egui/src/dock.rs b/crates/ui-egui/src/dock.rs index 7289a7a0d3..b0ed6bddbb 100644 --- a/crates/ui-egui/src/dock.rs +++ b/crates/ui-egui/src/dock.rs @@ -218,6 +218,9 @@ mod tests { fn panel(id: &'static str) -> Panel { SHOWN.with(|s| *s.borrow_mut() = id); let mut app = VectorcraftApp::new(Session::new(), Default::default()); + // The scan of the installed fonts, which the app starts, changes the fonts' generation when it ends, and the + // bodies' inputs hold that generation: wait for it, or an idle frame that it ends in runs the body. + vectorcraft_text::FontDb::global().family_list(); app.run("file.new", json!({"width": 200, "height": 200})).unwrap(); app.run("shape.rectangle", json!({"x": 10, "y": 10, "width": 50, "height": 50})).unwrap(); let mut panel = Panel::new(app, draw);