Skip to content

[Test Case]: TC-5 Cross-mode state load and tensor magnitude color map #245

Description

@AnSergioFern

📝 Description

Automated E2E regression (P2, only after the P1 test cases are done, otherwise moved to a follow-up story). Verify that a state saved in one rendering mode loads correctly in the other mode, including a 9-component tensor variable colored by magnitude.

Same-mode save/load is already covered by tests/integration/test_save_load_state.py and tests/e2e/regressions/test_save_load_state.py and is not repeated here.

📜 Steps

  1. CLIENT instance with tensors9.vtp. Color by Tensors9, component Magnitude. Change the camera and a part opacity. Save state to a temp dir.
  2. Start a fresh SERVER instance without input (empty scene), open the page, call load_state(dir), then reload.
  3. Repeat in the reverse direction (SERVER save, CLIENT load).

Note: load_state restores datasets from snapshots only when the scene is empty. On a non-empty scene it only applies the state to datasets already loaded. This is by design.

🧪 Expected Results

After load and after reload in the other mode:

  • color_by is Tensors9 and color_by_component is the magnitude value (-1).
  • The legend title and range match the source.
  • The part opacity matches, and the camera matches within 1e-3.
  • Only these named fields are compared. No unexpected console or page errors.
  • Negative validation: positive and negative reports are attached here.

📁 Test Data

  • examples/assets/tensors9.vtp (Tensors9, 9 components)

🔗 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