test(web): record physics manifest playback evidence
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -425,6 +425,9 @@
|
||||
撤销恢复 scale;证据 `tools/web/complete/probe-transform.mjs`。
|
||||
- 物理:Physics 面板 Add 创建 RIGID_BODY(ACTIVE,场景 rigidbody_world),
|
||||
Mass 1.0→5.0 写入 Main;证据 `tools/web/complete/probe-physics.mjs`。
|
||||
- 物理 Manifest/播放:RIGID_BODY 添加后 manifest 显示 `1 systems · 0 cached`,
|
||||
播放使时间线 frame 1→2,暂停后停在 2;证据
|
||||
`tools/web/complete/probe-physics.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-14T07:54:00+08:00",
|
||||
"updatedAt": "2026-11-14T07:56: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",
|
||||
@@ -247,5 +247,10 @@
|
||||
"wasmSha256": "be87a9ad0b777466253cc802a2482332a7f6b7b4d5cbc2ced513fbb7e7ba1146",
|
||||
"script": "tools/web/complete/probe-compositor-eval.mjs",
|
||||
"acceptance": "NOT_CLAIMED"
|
||||
},
|
||||
"physicsPlaybackProbe": {
|
||||
"result": "manifest 1 systems · 0 cached after RIGID_BODY; 播放 frame 1→2; 暂停 stops at 2",
|
||||
"script": "tools/web/complete/probe-physics.mjs",
|
||||
"acceptance": "NOT_CLAIMED"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,6 +75,24 @@ try {
|
||||
await page.waitForTimeout(1500);
|
||||
log("mass", JSON.stringify(await physicsState()));
|
||||
}
|
||||
const manifest = page.locator('[data-testid="physics-simulation-manifest"]').first();
|
||||
await manifest.waitFor({ timeout: 30_000 });
|
||||
const manifestInfo = async () => page.evaluate(() => {
|
||||
const fieldset = document.querySelector('[data-testid="physics-simulation-manifest"]');
|
||||
return {
|
||||
output: fieldset?.querySelector('output')?.textContent ?? null,
|
||||
buttons: Array.from(fieldset?.querySelectorAll('button') ?? []).map((button) => ({ text: button.textContent, disabled: button.hasAttribute('disabled') })),
|
||||
frame: document.querySelector('input[aria-label="当前帧"]')?.value ?? null,
|
||||
status: document.querySelector('[data-testid="engine-status"]')?.textContent ?? "",
|
||||
};
|
||||
});
|
||||
log("manifest", JSON.stringify(await manifestInfo()));
|
||||
await manifest.getByRole("button", { name: "播放", exact: true }).evaluate((element) => element.click());
|
||||
await page.waitForTimeout(2500);
|
||||
log("playing", JSON.stringify(await manifestInfo()));
|
||||
await manifest.getByRole("button", { name: "暂停", exact: true }).evaluate((element) => element.click());
|
||||
await page.waitForTimeout(1000);
|
||||
log("paused", JSON.stringify(await manifestInfo()));
|
||||
} catch (error) {
|
||||
log("probe error", error instanceof Error ? error.message : String(error));
|
||||
log("state", JSON.stringify(await physicsState().catch(() => null)));
|
||||
|
||||
Reference in New Issue
Block a user