Files
workinf_Blender_Wasm/web/tests/e2e/b3-served-module-probe.spec.ts
mes123456 f3e21c6b98
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
chore: checkpoint web Blender migration source, tools and docs
Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-10 11:18:01 +08:00

24 lines
961 B
TypeScript

import fs from "node:fs";
import { test } from "@playwright/test";
test("inspect served editor-workflow module", async ({ page }) => {
test.setTimeout(120_000);
await page.goto("/");
const out = await page.evaluate(async () => {
const paths = ["/protocol/editor-workflow.ts", "/src/protocol/editor-workflow.ts", "/@fs/home/mes123456/workinf_Blender_Wasm/web/protocol/editor-workflow.ts"];
const results: Record<string, unknown> = {};
for (const path of paths) {
try {
const response = await fetch(path);
const text = response.ok ? await response.text() : "";
results[path] = { ok: response.ok, status: response.status, hasPhysics: text.includes("PHYSICS"), hasObjectAllow: text.includes("'WORLD', 'OBJECT'") };
}
catch (error) {
results[path] = { error: String(error) };
}
}
return results;
});
fs.writeFileSync("/tmp/served-module.json", JSON.stringify(out, null, 2));
});