From 07bb7c2522b0d64725a00e26abaf0ccfe4d7bbcc Mon Sep 17 00:00:00 2001 From: David Mann Date: Thu, 22 Oct 2026 22:31:49 +0200 Subject: [PATCH] Integration: enable Generator in the Image Assets artboard tests (#8254) #5598 made File > Generate > Image Assets require Preferences > Plug-ins > Generator, so #8254's two artboard tests got Disabled. Enable it first, as #5598's own test does. Co-Authored-By: Claude Opus 5.5 (1M context) --- crates/engine/src/web_cmds/tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/engine/src/web_cmds/tests.rs b/crates/engine/src/web_cmds/tests.rs index e8c82ba448..8978234d7d 100644 --- a/crates/engine/src/web_cmds/tests.rs +++ b/crates/engine/src/web_cmds/tests.rs @@ -690,6 +690,7 @@ fn image_assets_keep_full_artboards() { }) .unwrap(); + s.execute("prefs.set", json!({"path": "plugIns.generatorEnabled", "value": true})).unwrap(); let r = s.execute("file.generate.imageAssets", json!({"on": true, "dir": dir})).unwrap(); assert!(r["errors"].as_array().unwrap().is_empty(), "{r}"); let board = decode(&format!("{dir}/board.png")); @@ -727,6 +728,7 @@ fn image_assets_refuse_empty_artboards() { Ok(()) }) .unwrap(); + s.execute("prefs.set", json!({"path": "plugIns.generatorEnabled", "value": true})).unwrap(); let r = s.execute("file.generate.imageAssets", json!({"on": true, "dir": dir})).unwrap(); assert_eq!(r["files"], json!([]), "{r}"); let errors = r["errors"].as_array().unwrap();