Skip to content

[Test Case]: TC-3 Canvas interaction drives the server camera and survives refresh #243

Description

@AnSergioFern

📝 Description

Automated E2E regression (P1). Verify that mouse drag and wheel input on the SERVER stream image changes the server-side camera, and that the camera survives a page refresh. A CLIENT control checks that the view does not jump when a part property changes.

📜 Steps

  1. SERVER: start a fresh instance and wait for two decoded frames. Save state to get camera A.
  2. Left-drag across the viewer center with page.mouse (down, 10 intermediate moves, up).
  3. Poll the saved state until the camera differs from A (camera B), with a 10 s timeout.
  4. Scroll the wheel over the viewer center. Poll until the distance from camera position to focal point differs from B (camera C).
  5. Reload the page, wait for frame readiness and save state to get camera D.
  6. CLIENT control: orbit with the mouse, wait for the camera to settle, then change a part opacity in the UI. Compare the camera before and after the opacity change.

🧪 Expected Results

  • B differs from A (position or view-up).
  • The distance in C differs from B.
  • D equals C within 1e-3 relative.
  • CLIENT: the camera is unchanged by the opacity change within 1e-3 (the view does not jump).
  • No assertion on wheel direction or exact amounts. No unexpected console or page errors.
  • Negative validation: asserting D equals A fails. Positive and negative reports are attached here.

📁 Test Data

  • examples/assets/vtk_scene_sphere_l2_b3_r32_v3_c1_z3.vtm and .json

🔗 Related Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

test case

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions