Files
workinf_Blender_Wasm/web/tests/deployed/support
mes123456 c47fa79102
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): viewport transform parity — offscreen backend, per-island pivots, ortho sizing
- Offscreen worker backend publishes the camera probe, so the G/R/S modal's
  pointer basis, transform gizmo and wireframe work on both renderers.
- Edit-mode INDIVIDUAL_ORIGINS pivots every connected island on its own centre,
  committed as one grouped transaction (T(P)·R·S·T(-P) in object space).
- Gizmo hits carry the pivot index; orthographic views size the axes from the
  visible world height instead of the 45° fov fallback.
- View-menu navigation no longer switches workspace when a viewport is already
  on screen (the engine workspace transaction dropped the editor out of Edit).
- Modal commits queue behind the shared command tail, so a trailing
  editEditorContext cannot consume the user's first Ctrl+Z.
- Floating sidebar rotation field confirmed in degrees; headed cases for the
  offscreen path, per-island pivots and the sidebar unit, plus receipts/docs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 07:48:17 +08:00
..

tests/deployed — 线上功能测试用例

运行入口不在本目录,而是仓库根的 tools/web/run-deployed-functional-tests.mjs(它做预检、生成报告)。直接跑 Playwright 也可以:

cd web
DISPLAY=:1 WEB_ORIGIN=https://49.232.250.35:58014 \
  npx playwright test --config playwright.deployed.config.ts --workers=1 tests/deployed/01-files.spec.ts

写作规范

  • 标题形如 "[ch07] …":方括号里的 chNN 会进入报告的章节覆盖统计;manual-page、preflight-http、cap-layout 等自定义标签同理。
  • 每条用例必须至少一个用户可见断言:对象数、面数、状态栏文本、下载文件名、OPFS 内容、渲染像素宽度。禁止只断言「元素被点击」。
  • 结束前调用 receipt(testInfo, {...}) 写入 {status, screenshot, …};shot(page, testInfo, name) 存关键截图。
  • 需要打开工程时用 openProject(page, path)(内含启动等待 + SceneIR 等待),不要自己写 waitForTimeout。
  • 默认入口(gotoApp(page, "native"))有原生覆盖层,指针点击会被吞掉,须用 element.click()。

辅助文件

文件 内容
support/deployed.ts gotoApp、waitEngineBoot、waitEngineReady、openProject、openBlend、waitForObjects、shot、receipt、opfsProjectIds、FIXTURES
support/chapters.ts 手册 31 章的 CHAPTERS / chapter(id)
support/matrix.ts 能力矩阵 31 行的 CAPABILITIES