mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-24 09:57:08 -06:00
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:
co-authored by
Claude Opus 5.5
parent
450b832a4c
commit
07bb7c2522
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user