Files
workinf_Blender_Wasm/web/tests/e2e/probe-monkey-add-diagnostic.spec.ts
mes123456 63db6caf1f
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
feat(web): studio worlds, camera-view/offscreen environment parity, material and undo coverage
Environment lighting:
- ship all eight desktop studiolights/world datasets (WBENV1 float32) and a
  shared loader used by both the main viewport and the offscreen worker
- add the N-panel "studio 环境" selector
- rotate the world background together with the environment
  (backgroundRotation/backgroundIntensity), so camera view and offscreen
  renders match the desktop Mapping-node behaviour

Verification (Chromium, OPFS, NOT_CLAIMED):
- environment lighting + 8 world pixel identity
- camera-view rotation correspondence (camera matrices, 207 samples)
- offscreen vs on-screen background parity after hiding geometry (1305 samples)
- metals case extended with material-field OPFS roundtrip
- material Principled edits and rename undo/redo
- eight studio worlds: pairwise frame differences + luminance rank correlation
- undo history depth capped at 64 steps and undo across OPFS save/reopen

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 09:27:47 +08:00

29 lines
1.4 KiB
TypeScript

import { expect, test } from "@playwright/test";
import path from "node:path";
import { captureNativeWorkflowState, exposeWebTools, observeNative } from "../fixtures/native-ui-workflow";
test("probe: capture the Monkey add failure detail", async ({ page }) => {
test.setTimeout(120_000);
await observeNative(page);
await page.goto("/");
await page.getByTestId("blend-file-input").setInputFiles(path.resolve(import.meta.dirname, "../../../tests/files/web/basic_scene.blend"));
await expect(page.getByTestId("engine-status")).toContainText(/SceneIR r\d+/, { timeout: 60_000 });
await exposeWebTools(page);
await page.getByRole("button", { name: "添加", exact: true }).click();
await page.getByRole("menuitem", { name: "网格", exact: true }).click();
await page.getByRole("menuitem", { name: "猴头", exact: true }).click();
await page.waitForTimeout(5000);
const state = await captureNativeWorkflowState(page);
console.log("PROBE_STATE " + JSON.stringify({
engineStatus: state.engineStatus,
diagnosticDetail: state.diagnosticDetail,
python: state.python,
main: state.main,
outlinerText: await page.locator(".outliner-area, [aria-label='Outliner']").first().innerText().catch(() => ""),
responses: state.responses,
gpuFailure: state.gpuFailure,
browserDiagnostics: state.browserDiagnostics,
console: state.console,
}, null, 2).slice(0, 12000));
});