-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 [p2e] Update VTK tests #7913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [p2e] Update VTK tests #7913
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the VTK tests for the paraview service to validate the list of visible entities instead of expecting output files. The key changes are:
- Added a new utility function waitForLabelText in utils.js to check for the presence of text on page elements.
- Updated the 3D_EM test to retrieve an iframe context and verify entity labels within it.
- Updated the 3D_Anatomical test to verify entity labels on the page rather than checking output files.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| tests/e2e/utils/utils.js | Added waitForLabelText for detecting visible text elements in the DOM. |
| tests/e2e/portal/3D_EM.js | Replaced output file checks with an iframe-based label verification. |
| tests/e2e/portal/3D_Anatomical.js | Replaced output file checks with a page-based label verification. |
Comments suppressed due to low confidence (1)
tests/e2e/portal/3D_Anatomical.js:42
- The file extension 'Bones.e' appears inconsistent with the other entity labels (e.g., 'Vein.vtk' and 'Artery.vtk'); please verify if this is a typo or intentional.
"Bones.e",
|
|
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 2c40792 |



What do these changes do?
The new paraview service doesn't write output files and these were expected in our p2e test. (3D_EM and 3D_anatomical)
This PR replaces those checks with checks in the list of visible entities.
Related issue/s
How to test
Dev-ops