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.
This commit is contained in:
aiongg committed 2026-10-22 06:22:38 +00:00
1 parent 8662b2fe6a
commit 022a970fab
1 file changed
+1
+1
View File
@@ -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);