Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

Integration: #2173's restored-paper test lets the dialog relabel its button before clicking Save as PDF

aiongg022a970fabdb
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);