From 022a970fabdb7305d966e645383d6001cc61aaf4 Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 22 Oct 2026 06:22:38 +0000 Subject: [PATCH] Integration: #2173's restored-paper test lets the dialog relabel its button before clicking Save as PDF Windows CI has a default printer, so the button still read Print in the frame where the test cleared the printer; the other print tests already run a frame first. --- crates/ui-egui/tests/print.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ui-egui/tests/print.rs b/crates/ui-egui/tests/print.rs index 1e2a94138..47bef8c95 100644 --- a/crates/ui-egui/tests/print.rs +++ b/crates/ui-egui/tests/print.rs @@ -862,6 +862,7 @@ fn restored_paper_keeps_preview_and_saved_sheet_dimensions() { let out = std::env::temp_dir().join(format!("pdfcraft-restored-paper-{}.pdf", std::process::id())); h.state_mut().print_draft.printer = None; h.state_mut().save_override = Some(out.to_string_lossy().into_owned()); + h.run_steps(1); h.get_by_label("Save as PDF").click(); h.run_steps(3); assert_eq!(h.state().dialog, None);