From de7f1fc144f5015dfd2d4caf8b2de3bc79e006b1 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sun, 29 Nov 2026 00:07:51 -0800 Subject: [PATCH] New Document: a test checks that a typed Artboards count keeps the preset until committed Artboards is the one numeric field in Preset Details without a cancel test. The new test types a count over the preset's 5, checks that the dialog still shows the preset and its settings, presses Escape, and creates the document with the preset's settings. --- crates/ui-egui/src/dialogs/new_document.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ui-egui/src/dialogs/new_document.rs b/crates/ui-egui/src/dialogs/new_document.rs index 8e770d3da7..0723f554c0 100644 --- a/crates/ui-egui/src/dialogs/new_document.rs +++ b/crates/ui-egui/src/dialogs/new_document.rs @@ -980,6 +980,10 @@ mod tests { canceled_detail_number("Height", "150"); } #[test] + fn canceled_new_document_artboards_preserve_preset() { + canceled_detail_number("Artboards", "3"); + } + #[test] fn canceled_new_document_bleed_preserves_preset() { canceled_detail_number("Top", "3"); }