mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-22 19:08:29 +00:00
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:
1 parent
8662b2fe6a
commit
022a970fab
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user