test(web): record spreadsheet evaluated attributes evidence
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -452,6 +452,10 @@
|
||||
`bpy.ops.mesh.primitive_cube_add()` → Objects 7、Active Cube,状态
|
||||
SceneIR r3;WASM `8a874494...`。证据
|
||||
`tools/web/complete/probe-python-console.mjs`。
|
||||
- Spreadsheet(Geometry Nodes 工作区):数据源含 objects/vertices/edges/
|
||||
faces/uv/attributes;attributes 表 9 行(position/normal/UVMap/...);
|
||||
“读取求值后属性”返回 12 行(UVMap、select_vert 等及前 8 值)。证据
|
||||
`tools/web/complete/probe-spreadsheet.mjs`。
|
||||
- Sequencer:Properties 的 Sequencer Strip Editing → Add Strip 创建
|
||||
`Web MOVIE`(MOVIE);证据 `tools/web/complete/probe-sequencer.mjs`。
|
||||
- Outliner:右键 `Data` 菜单 → 重命名,`PBR Studio Ground` → `GroundRenamed`,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1425-001",
|
||||
"updatedAt": "2026-11-14T09:11:00+08:00",
|
||||
"updatedAt": "2026-11-14T09:14:00+08:00",
|
||||
"status": "in_progress",
|
||||
"focus": "COMPLETE-TUTORIAL-001 backend export gap (USD/Alembic)",
|
||||
"breakpoint": "blender-5.2.0/source/blender/web_engine/CMakeLists.txt (USD wiring); WASM 6ee2b261",
|
||||
@@ -282,5 +282,10 @@
|
||||
"wasmSha256": "8a87449430b6d9b97e02ef3b74b7477c4906c5d2d5c677cfe1ecb5b3bb957cea",
|
||||
"script": "tools/web/complete/probe-python-console.mjs",
|
||||
"acceptance": "NOT_CLAIMED"
|
||||
},
|
||||
"spreadsheetProbe": {
|
||||
"result": "attributes source 9 rows; 读取求值后属性 12 rows with names/domains/types/first values",
|
||||
"script": "tools/web/complete/probe-spreadsheet.mjs",
|
||||
"acceptance": "NOT_CLAIMED"
|
||||
}
|
||||
}
|
||||
|
||||
48
tools/web/complete/probe-spreadsheet.mjs
Normal file
48
tools/web/complete/probe-spreadsheet.mjs
Normal file
@@ -0,0 +1,48 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* Focused case: Geometry Nodes workspace Spreadsheet attributes + evaluated read.
|
||||
*
|
||||
* node tools/web/complete/probe-spreadsheet.mjs --base-url http://127.0.0.1:5176
|
||||
*/
|
||||
import { ASSETS, 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(90_000);
|
||||
const log = (...parts) => console.log(new Date().toISOString().slice(11, 19), ...parts);
|
||||
const state = async () => page.evaluate(() => {
|
||||
const view = document.querySelector('[data-testid="spreadsheet-view"]');
|
||||
return {
|
||||
rows: view?.querySelectorAll('[data-testid="spreadsheet-row"]').length ?? null,
|
||||
text: view?.querySelector('table')?.textContent?.slice(0, 300) ?? null,
|
||||
status: document.querySelector('[data-testid="engine-status"]')?.textContent ?? "",
|
||||
};
|
||||
});
|
||||
try {
|
||||
await openFile(page, ASSETS.studio);
|
||||
await waitScene(page, { objects: 6, timeout: 240_000 });
|
||||
await switchWorkspace(page, "Geometry Nodes");
|
||||
const view = page.locator('[data-testid="spreadsheet-view"]').first();
|
||||
await view.waitFor({ timeout: 30_000 });
|
||||
const source = view.locator('select[aria-label="数据源"]');
|
||||
log("sources", JSON.stringify(await source.locator('option').evaluateAll((nodes) => nodes.map((node) => node.value))));
|
||||
await source.selectOption("attributes");
|
||||
await page.waitForTimeout(1200);
|
||||
log("attributes", JSON.stringify(await state()));
|
||||
const evaluated = view.locator('[data-testid="spreadsheet-evaluated"]');
|
||||
log("evaluated button", await evaluated.count());
|
||||
if (await evaluated.count()) {
|
||||
await evaluated.click();
|
||||
await page.waitForTimeout(3000);
|
||||
log("evaluated", JSON.stringify(await state()));
|
||||
}
|
||||
} catch (error) {
|
||||
log("probe error", error instanceof Error ? error.message : String(error));
|
||||
log("state", JSON.stringify(await state().catch(() => null)));
|
||||
} finally {
|
||||
log("consoleErrors", JSON.stringify(consoleErrors.slice(-8)));
|
||||
await context.close();
|
||||
await browser.close();
|
||||
}
|
||||
Reference in New Issue
Block a user