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) <noreply@anthropic.com>
This commit is contained in:
David Mann
2026-10-22 23:40:21 +02:00
co-authored by Claude Opus 5.5
parent 450b832a4c
commit 07bb7c2522
+2
View File
@@ -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();