From 1ed97de1beecdbd2a0f3555d7d45e6eed3b1b045 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Wed, 2 Dec 2026 18:11:47 +0100 Subject: [PATCH] test(ui): wait for both tabs before quitting with unsaved changes (#9053) editing::quitting_with_unsaved_changes_still_remembers_every_file failed on the Windows gate (run 46918447116) at views[0]: the two files open off the UI thread and four frames had not opened them. --- crates/ui-egui/tests/it/editing.rs | 2 ++ 1 file changed, 2 insertions(+) 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]);