chore(web): continuous handoff WBV2-P1159-001
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-03 18:35:08 +08:00
parent 961cee8c32
commit c78b802be6
14 changed files with 8581 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ import { expect, test } from "@playwright/test";
const root = path.resolve(import.meta.dirname, "../../..");
const task = process.env.WBV2_BATCH_TASK ?? "WBV2-P1158-001";
const fixture = "tests/files/web/generated/M16-GAP-00008-datablock-FreestyleLineStyle.blend";
const fixture = process.env.WBV2_BATCH_FIXTURE ?? "tests/files/web/generated/M16-GAP-00008-datablock-FreestyleLineStyle.blend";
const fixtureBytes = fs.readFileSync(path.join(root, fixture));
const fixtureSha256 = crypto.createHash("sha256").update(fixtureBytes).digest("hex");
const sourceUnits = JSON.parse(process.env.WBV2_BATCH_UNITS ?? '["rna-struct:FreestyleLineStyle","rna-struct:LineStyleModifier","rna-struct:LineStyleAlphaModifier","rna-struct:LineStyleColorModifier","rna-struct:LineStyleGeometryModifier","rna-struct:LineStyleThicknessModifier"]');
@@ -22,6 +22,7 @@ test("line style reader preserves Blender Main style metadata", async ({ page })
alpha: style.alpha,
thickness: style.thickness,
geometry: style.geometry,
modifierCounts: style.modifierCounts ?? style.modifiers ?? null,
}));
const client = new WebEngineClient({ timeoutMs: 60_000 });
const reopenedClient = new WebEngineClient({ timeoutMs: 60_000 });
@@ -71,6 +72,13 @@ test("line style reader preserves Blender Main style metadata", async ({ page })
expect(result.error).toBeUndefined();
expect(result.styleCount).toBeGreaterThan(0);
if (task.includes("COLLECTION")) {
const counts = result.before[0]?.modifierCounts ?? {};
expect(counts.color).toBeGreaterThan(0);
expect(counts.alpha).toBeGreaterThan(0);
expect(counts.thickness).toBeGreaterThan(0);
expect(counts.geometry).toBeGreaterThan(0);
}
expect(result.saveReopenExact).toBe(true);
expect(result.deterministicExact).toBe(true);
expect(result.malformed?.code).not.toBe("ACCEPTED_MALFORMED");