diff --git a/crates/ui-egui/tests/it/editing.rs b/crates/ui-egui/tests/it/editing.rs index fe16d127f3..a41fb2de07 100644 --- a/crates/ui-egui/tests/it/editing.rs +++ b/crates/ui-egui/tests/it/editing.rs @@ -840,6 +840,8 @@ fn quitting_with_unsaved_changes_still_remembers_every_file() { app.open_path(f); }) }); + // The files open off the UI thread: wait for both tabs instead of counting frames. + support::wait_until(&mut h, "both files", |app| app.views.len() == 2); for tab in 0..2 { h.state_mut().active = Some(tab); h.state_mut().views[tab].select_pages(&[0]);