20 lines
776 B
TypeScript
20 lines
776 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
|
|
test("M12-03N runs the linked mutation gate in an independent Chromium lane", async ({ page }) => {
|
|
await page.goto("/");
|
|
const result = await page.evaluate(async () => {
|
|
const linked = await import("/src/library-link-chromium.ts");
|
|
const gate = linked.gateLinkedDataMutation({
|
|
schemaVersion: 1,
|
|
operation: "MESH_GEOMETRY",
|
|
dataBlockId: "Mesh/M12 Link Mesh",
|
|
baseRevision: 7,
|
|
owner: "SOURCE_LIBRARY",
|
|
linkedLibrary: true,
|
|
readOnly: true,
|
|
}, 7);
|
|
return { status: gate.status, code: gate.issues[0]?.code, recoverable: gate.issues[0]?.recoverable };
|
|
});
|
|
expect(result).toEqual({ status: "BLOCKED", code: "LINKED_DATA_MUTATION_BLOCKED", recoverable: false });
|
|
});
|