diff --git a/crates/engine/src/cmd/count_resize_tests.rs b/crates/engine/src/cmd/count_resize_tests.rs index ccc4adad099..7648ed00514 100644 --- a/crates/engine/src/cmd/count_resize_tests.rs +++ b/crates/engine/src/cmd/count_resize_tests.rs @@ -71,6 +71,8 @@ fn ruler_straighten_with_crop_moves_count_points_with_the_image() { s.execute("file.new", json!({"width": 600, "height": 400})).unwrap(); s.execute("count.add", json!({"x": 250, "y": 150})).unwrap(); s.execute("notes.add", json!({"x": 250, "y": 150})).unwrap(); + // Straighten Layer is off for the Background (#12033). + s.execute("layer.new.layer", json!({})).unwrap(); s.execute("image.analysis.rulerTool", json!({"start": [0, 0], "end": [100, 10]})).unwrap(); s.execute("image.analysis.straightenLayer", json!({"crop": true})).unwrap(); let (c, n) = (count_point(&s), note(&s)); @@ -81,6 +83,8 @@ fn ruler_straighten_with_crop_moves_count_points_with_the_image() { fn ruler_straighten_with_crop_asks_the_gate_for_its_rotation() { let mut s = Session::new(); s.execute("file.new", json!({"width": 600, "height": 400})).unwrap(); + // Straighten Layer is off for the Background (#12033). + s.execute("layer.new.layer", json!({})).unwrap(); s.execute("image.analysis.rulerTool", json!({"start": [0, 0], "end": [100, 10]})).unwrap(); let size = s.active().unwrap().doc.size; s.authorize = Some(|id, _| if id == "image.rotation.arbitrary" { Err(crate::EngineError::Other("denied".into())) } else { Ok(()) });