From de858167e99a2cfc86b7b36922cd73cc18e4c44d Mon Sep 17 00:00:00 2001 From: yoriswind Date: Sun, 1 Nov 2026 01:40:43 -0800 Subject: [PATCH] Make inherited Batch action effect observable in regression --- crates/engine/src/cmd/automate_cmds/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/automate_cmds/tests.rs b/crates/engine/src/cmd/automate_cmds/tests.rs index e47e4a3218..cd7a6e7ede 100644 --- a/crates/engine/src/cmd/automate_cmds/tests.rs +++ b/crates/engine/src/cmd/automate_cmds/tests.rs @@ -450,6 +450,7 @@ fn droplets_preserve_batch_action_namespaces() { batch["action"] = json!("Source"); } if kind == "caller-null" { + maker.actions.list[1].steps.push(("image.imageRotation.90cw".into(), json!({}))); batch["calledActions"] = Value::Null; } let mut steps = Vec::new(); @@ -483,7 +484,7 @@ fn droplets_preserve_batch_action_namespaces() { let r = Session::new().execute("file.automate.runDroplet", json!({"droplet": path, "input": [input]})).unwrap(); assert_eq!(r["errors"], json!([]), "{kind}: {r}"); let out = photocraft_codecs::decode(&std::fs::read(format!("{inner}/img0.png")).unwrap()).unwrap(); - assert_eq!(out.dimensions(), if kind == "caller-null" { (40, 20) } else { (20, 40) }, "{kind}"); + assert_eq!(out.dimensions(), (20, 40), "{kind}"); if kind == "mixed-two" { assert_eq!(photocraft_codecs::decode(&std::fs::read(format!("{other}/img0.png")).unwrap()).unwrap().dimensions(), (40, 20)); }