feat(POSTV1-ASSET-ALL-16): 生成并部署全量复杂素材
Dada P0-A isolated Windows CI / validate-and-package (push) Waiting to run
Dada P0-A isolated Windows CI / validate-and-package (push) Waiting to run
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import complexAssetCatalog from "../../apps/web/src/generated/complex-assets.json";
|
||||
import {
|
||||
P0A_COLOR_CARD_IDS,
|
||||
P0A_DYNAMIC_STICKER_IDS,
|
||||
@@ -25,4 +26,14 @@ describe("POSTV1-ASSET-ALL-16 complete asset catalog", () => {
|
||||
expect(P0A_DYNAMIC_STICKER_IDS[0]).toBe("DYN001");
|
||||
expect(P0A_DYNAMIC_STICKER_IDS.at(-1)).toBe("DYN035");
|
||||
});
|
||||
|
||||
it("generates a sanitized browser catalog for every text, font, and dynamic definition", () => {
|
||||
expect(complexAssetCatalog.schema_version).toBe("DadaComplexBrowserCatalog/v1");
|
||||
expect(complexAssetCatalog.text_templates).toHaveLength(332);
|
||||
expect(complexAssetCatalog.font_panel_items).toHaveLength(86);
|
||||
expect(complexAssetCatalog.dynamic_stickers).toHaveLength(35);
|
||||
expect(complexAssetCatalog.text_templates.filter((item) => item.preview_asset_id)).toHaveLength(261);
|
||||
expect(complexAssetCatalog.text_templates.every((item) => item.available)).toBe(true);
|
||||
expect(JSON.stringify(complexAssetCatalog)).not.toMatch(/[A-Z]:[\\/]/i);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user