Checkpoint web parity through Chromium input tasks
This commit is contained in:
19
web/tests/e2e/library-link-chromium.spec.ts
Normal file
19
web/tests/e2e/library-link-chromium.spec.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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 });
|
||||
});
|
||||
Reference in New Issue
Block a user