Files
workinf_Blender_Wasm/tools/web/complete/probe-backend.mjs
mes123456 4eb08faf31 chore(web): checkpoint export fixes, operator routing and three-domain evidence
- Web engine CMake: apply WITH_WEB_USD_PYTHON to blender_web_engine_core,
  embed /usd resources, link pxr Python bindings after the core archive and
  whole-archive the monolithic OpenUSD archive. Fixes the wm.usd_export abort
  and restores Alembic/USD embedded export.
- ?ui=web menus: fix inverted localOnly gating and route queueLocalDesktopOperator
  and nativeAdd through the desktop operator channel with a VIEW_3D context;
  non-mesh edit-mode selection uses the native VIEW3D_SELECT bridge.
- Refresh WebEngine wasm/js artifacts, manual/course pages and the complete
  course video asset.
- Record focused Chromium probes for Add/F3/parameters/modifier/UV/curve/deform,
  scene operations, OPFS save/reopen and worker restart. Evidence is NOT_CLAIMED.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-14 06:12:44 +08:00

30 lines
1.7 KiB
JavaScript

import { parseArgs, launchBrowser, newPage, openFile, waitScene, switchWorkspace } from "../course/lib/lesson-recorder.mjs";
const args = parseArgs();
const BASE = args.baseUrl || "http://127.0.0.1:5176";
const browser = await launchBrowser(args.gpu);
const { context, page, consoleErrors } = await newPage(browser, { baseUrl: BASE });
page.setDefaultTimeout(15000);
const api = [];
page.on("request", (request) => { if (request.url().includes("/api/")) api.push(`REQ ${request.method()} ${request.url()}`); });
page.on("response", (response) => { if (response.url().includes("/api/")) api.push(`RES ${response.status()} ${response.url()}`); });
await openFile(page, "/home/mes123456/workinf_Blender_Wasm/web/app/public/tutorial/pbr/studio.blend");
await waitScene(page, { objects: 6, timeout: 240000 });
await switchWorkspace(page, "Rendering");
const panel = page.locator(".native-render-fallback").first();
await panel.evaluate((element) => { element.open = true; });
await page.locator('select[aria-label="Engine"]').selectOption("BLENDER_EEVEE");
await page.getByRole("button", { name: "Render Frame", exact: true }).click();
for (let i = 0; i < 6; i++) {
await page.waitForTimeout(5000);
const dump = await page.evaluate(() => ({
output: document.querySelector(".native-workflow-output")?.textContent,
engine: document.querySelector('[data-testid="engine-status"]')?.textContent,
image: Boolean(document.querySelector(".native-render-image img")),
alert: Array.from(document.querySelectorAll('[role="alert"]')).map((e) => e.textContent).slice(0, 5),
}));
console.log(i * 5 + "s", JSON.stringify(dump), "api", api.slice(-4));
}
console.log("consoleErrors", consoleErrors.slice(-8));
await context.close();
await browser.close();