chore(web): continuous handoff WBV2-P1288-001
This commit is contained in:
@@ -4,10 +4,14 @@ import path from "node:path";
|
||||
import { expect, test } from "@playwright/test";
|
||||
|
||||
const root = path.resolve(import.meta.dirname, "../../..");
|
||||
const evidenceRoot = path.join(root, "tests/golden/WBV2-P11-002");
|
||||
const fixturePath = path.join(root, "tests/files/web/generated/WBV2-P4-001-MODIFIER.DECLARED_SLICES.blend");
|
||||
const task = process.env.WBV2_BATCH_TASK ?? "WBV2-P11-002";
|
||||
const evidenceRoot = path.join(root, `tests/golden/${task}`);
|
||||
const fixtureName = process.env.WBV2_BATCH_FIXTURE ?? "tests/files/web/generated/WBV2-P4-001-MODIFIER.DECLARED_SLICES.blend";
|
||||
const fixturePath = path.join(root, fixtureName);
|
||||
const fixture = fs.readFileSync(fixturePath);
|
||||
const sourceSha256 = crypto.createHash("sha256").update(fixture).digest("hex");
|
||||
const productionPath = process.env.WBV2_BATCH_PRODUCTION ?? `tests/golden/${task}/modifier-parameter-production.json`;
|
||||
const sourceUnits = JSON.parse(process.env.WBV2_BATCH_UNITS ?? "[\"operator:MESH_OT_decimate\"]") as string[];
|
||||
|
||||
test("WBV2-P11-002 applies a bounded Modifier parameter through compiled WASM Main", async ({ page }) => {
|
||||
test.setTimeout(180_000);
|
||||
@@ -48,8 +52,7 @@ test("WBV2-P11-002 applies a bounded Modifier parameter through compiled WASM Ma
|
||||
finally { client.terminate(); reopenedClient.terminate(); }
|
||||
}, { bytes: Array.from(fixture), sourceSha256 });
|
||||
fs.mkdirSync(evidenceRoot, { recursive: true });
|
||||
const output = process.env.WBV2_MODIFIER_PARAMETER_REPORT ?? "modifier-parameter-production.json";
|
||||
fs.writeFileSync(path.join(evidenceRoot, output), `${JSON.stringify({ schemaVersion: 1, task: "WBV2-P11-002", operation: "MODIFIER_PARAMETER_APPLY_FAMILY_CHROMIUM", browser: "chromium", queueMutation: false, ...result }, null, 2)}\n`);
|
||||
fs.writeFileSync(path.join(root, productionPath), `${JSON.stringify({ schemaVersion: 1, task, operation: "MODIFIER_PARAMETER_APPLY_FAMILY_CHROMIUM", browser: "chromium", queueMutation: false, fixture: fixtureName, fixtureSha256: sourceSha256, sourceUnits, ...result }, null, 2)}\n`);
|
||||
expect(result.sourceSha256).toBe(sourceSha256);
|
||||
expect(result.disabledRevision).toBe(4);
|
||||
expect(result.appliedRevision).toBe(5);
|
||||
|
||||
Reference in New Issue
Block a user