[Test Case]: TC-1 SERVER mode startup: no wasm, first frame and reload

未关闭
#241 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 6 天内回复

@AnSergioFern 已经在做这个了。

开始于 2026年11月23日。

评估

这个 Issue 还没有评估数据。

描述

test case
📝 Description

Automated E2E regression (P1). Verify that SERVER rendering mode starts without downloading VTK.wasm, streams frames to the browser and recovers after a page reload. CLIENT mode is the control.

This test case also delivers the shared test infrastructure:

  • rendering_mode option in tests/e2e/conftest.py (default client, existing tests unchanged)
  • a function-scoped fresh-instance fixture
  • a frame-readiness helper. SERVER: the stream img in .visor-viewer-background is visible, complete, naturalWidth > 0, with a blob: source, and two distinct frames have arrived. CLIENT: the existing WebGL helpers on canvas.vtk-wasm-1.
  • tests/helpers/utils/remote.py with capture_wasm_requests, reload_and_wait_for_frame, saved_state and collect_page_errors
  • a remote marker in pytest.ini
📜 Steps
  1. Start a fresh instance with the sphere scene and metadata, rendering_mode="server".
  2. Open index.html with network capture enabled.
  3. Wait for frame readiness (two decoded frames).
  4. Reload the page and wait for frame readiness again.
  5. Control: repeat steps 1-3 with rendering_mode="client".
🧪 Expected Results
  • SERVER: zero requests whose URL path ends in .wasm. The stream image is ready within 15 s before and after the reload. There is no canvas.vtk-wasm-1 element. The tree shows the dataset and its 9 leaf parts.
  • CLIENT: at least one .wasm request and a canvas.vtk-wasm-1 element.
  • No unexpected console or page errors in either mode.
  • Negative validation: running the SERVER assertions against the CLIENT instance fails on the wasm assertion. Positive and negative reports are attached here.
📁 Test Data
  • examples/assets/vtk_scene_sphere_l2_b3_r32_v3_c1_z3.vtm
  • examples/assets/vtk_scene_sphere_l2_b3_r32_v3_c1_z3.json
🔗 Related Issues
  • Stories: #26, #27, #28
  • Parent story: linked as sub-issue
主要语言
Python
星标
3
派生
1
平均合并
5 天 9 小时
30 天内合并 PR
23

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ansys/Visual-Interactive-Simulation-Object-Renderer 的其他 Issue

查看 ansys/Visual-Interactive-Simulation-Object-Renderer 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。