Skip to content

[Test Case]: TC-2 Per-part state survives browser refresh in CLIENT and SERVER #242

Description

@AnSergioFern

📝 Description

Automated E2E regression (P1), parametrized over CLIENT and SERVER mode. Verify that per-part visibility, opacity and color changes made in the UI are kept by the server and survive a browser refresh.

📜 Steps

  1. Start a fresh instance with the sphere scene and wait for frame readiness.
  2. Hide level_1_block_0_part_0 with its eye icon in the tree.
  3. Select level_1_block_1_part_0 and set opacity to 0.3.
  4. Select level_1_block_2_part_0 and set color to #ff0000.
  5. Save state to a temp dir and read visor.json (before).
  6. Reload the page and wait for frame readiness.
  7. Save state again and read visor.json (after).

🧪 Expected Results

  • For the three parts, visible, opacity and diffuse_rgb before and after reload equal the values set (opacity within 1e-6, color [1, 0, 0] within 1e-3).
  • After reload, the tree shows level_1_block_0_part_0 hidden, and the properties panel shows 0.3 and #ff0000 when the other two parts are selected.
  • Untouched parts keep their metadata opacities.
  • Same results in CLIENT and SERVER. No unexpected console or page errors.
  • Negative validation: expecting opacity 0.5 after reload, or skipping step 3, fails on the opacity assertion. Positive and negative reports are attached here.

📁 Test Data

  • examples/assets/vtk_scene_sphere_l2_b3_r32_v3_c1_z3.vtm and .json (9 parts, metadata opacities 0.111, 0.222, 0.333)

🔗 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