fix: 完善模板可视化编辑闭环与通用验收
This commit is contained in:
1 parent
fa6b492bce
commit
22a82dbfba
39 files changed
+7773
-443
No files matched your search
@@ -169,7 +169,12 @@ test("shared brand facts have one editor and template-specific offering detail b
|
||||
const bindings = manifest.admin.sections.flatMap((section) =>
|
||||
section.fields.map((field) => field.binding),
|
||||
);
|
||||
assert.ok(!bindings.some((binding) => sharedBrandBindings.has(binding)), key);
|
||||
for (const field of manifest.admin.sections.flatMap((section) => section.fields)) {
|
||||
if (sharedBrandBindings.has(field.binding)) {
|
||||
assert.ok(field.previewTarget, key + ": shared facts need visual targets");
|
||||
assert.ok(!field.binding.includes(".config."), "Shared facts must use canonical columns");
|
||||
}
|
||||
}
|
||||
}
|
||||
const foodRoot = path.join(packageRoot, "template-acheng-campus-food");
|
||||
const food = JSON.parse(fs.readFileSync(path.join(foodRoot, "template.json"), "utf8"));
|
||||
|
||||
Reference in new issue
Block a user