mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-12-02 20:20:35 -05:00
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:
1 parent
9a79693e73
commit
1ed97de1be
1 file changed
+2
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user