mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
PR #14454: the Document Per Artboard dialog tests export every board
Export Selected Artboards from main opens ticked while a board is selected, so the dialog wrote one file where the test expects one per board. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
089d2f8942
commit
f61383181c
1 file changed
+2
@@ -35,6 +35,8 @@ fn open(h: &mut H, path: &str) -> DialogId {
|
||||
let dialog = h.state().framework.dialogs.open_dialogs().into_iter().map(|d| d.id).find(|d| d.value().to_string() == want).unwrap();
|
||||
h.run_steps(4);
|
||||
h.state_mut().framework.dialogs.set_json_field(&ctx, dialog, "path", json!(path)).unwrap();
|
||||
// Every board, not only the selected one: Export Selected Artboards opens ticked while a board is selected (#13647).
|
||||
h.state_mut().framework.dialogs.set_json_field(&ctx, dialog, "artboards", serde_json::Value::Null).unwrap();
|
||||
h.run_steps(4);
|
||||
dialog
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user