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.
This commit is contained in:
FredApps committed 2026-12-02 18:11:47 +01:00
1 parent 9a79693e73
commit 1ed97de1be
1 file changed
+2
+2
View File
@@ -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]);