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>
This commit is contained in:
30
web/tests/e2e/b3-seq-open-worker-probe.spec.ts
Normal file
30
web/tests/e2e/b3-seq-open-worker-probe.spec.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { test } from "@playwright/test";
|
||||
|
||||
const root = path.resolve(import.meta.dirname, "../../..");
|
||||
|
||||
test("capture worker errors for compressed blend open", async ({ page }) => {
|
||||
test.setTimeout(180_000);
|
||||
const lines: string[] = [];
|
||||
page.on("worker", (worker) => {
|
||||
worker.on("console", (message) => lines.push(`worker[${message.type()}]: ${message.text()}`.slice(0, 500)));
|
||||
});
|
||||
page.on("console", (message) => {
|
||||
const text = message.text();
|
||||
if (/error|Error|fail|Fail/.test(text)) lines.push(`page[${message.type()}]: ${text}`.slice(0, 500));
|
||||
});
|
||||
await page.goto("/");
|
||||
await page.waitForFunction(() => Boolean((window as any).__nativeWorkflowEngine), null, { timeout: 60000 }).catch(() => {});
|
||||
await page.waitForTimeout(8000);
|
||||
lines.length = 0;
|
||||
await page.getByTestId("blend-file-input").setInputFiles(path.join(root, "blender-5.2.0/tests/files/sequence_editing/sequence.blend"));
|
||||
await page.waitForTimeout(35000);
|
||||
const out = await page.evaluate(() => ({
|
||||
projectId: (document.querySelector("main.blender-app") as HTMLElement | null)?.dataset.projectId ?? "",
|
||||
status: document.querySelector('[data-testid="engine-status"]')?.textContent ?? "",
|
||||
statusTitle: document.querySelector('[data-testid="engine-status"]')?.getAttribute("title") ?? "",
|
||||
bodyText: document.body.innerText.replace(/\s+/g, " ").slice(0, 1200),
|
||||
}));
|
||||
fs.writeFileSync("/tmp/seq-open-worker.json", JSON.stringify({ ...(out as object), lines: lines.slice(-40) }, null, 2));
|
||||
});
|
||||
Reference in New Issue
Block a user