diff --git a/crates/ui-egui/src/headless.rs b/crates/ui-egui/src/headless.rs index 5b49b4dc..33e2474f 100644 --- a/crates/ui-egui/src/headless.rs +++ b/crates/ui-egui/src/headless.rs @@ -2960,6 +2960,8 @@ mod tests { if let Some(crate::state::Dialog::Import { opts }) = &mut h.app.ui.dialog { opts.rename = "Trip-_x".into(); } + // Paint the edited template before locating the Tags button in the resized dialog. + assert!(h.settle(SETTLE), "Copy dialog layout should settle before locating Tags"); // the cursor sits after "Trip-" let id = egui::Id::new("import-rename"); let mut st = egui::text_edit::TextEditState::default();