Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 17, 2025

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

@odeimaiz odeimaiz self-assigned this Jun 17, 2025
@odeimaiz odeimaiz marked this pull request as ready for review June 17, 2025 09:39
@odeimaiz odeimaiz requested a review from Copilot June 17, 2025 09:39
@odeimaiz odeimaiz added the e2e Bugs found by or related to the end-2-end testing label Jun 17, 2025
@odeimaiz odeimaiz added this to the Engage milestone Jun 17, 2025
Copy link
Contributor

Copilot AI left a 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",

@sonarqubecloud
Copy link

@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 17, 2025
@odeimaiz
Copy link
Member Author

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jun 17, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 2c40792

@mergify mergify bot merged commit 2c40792 into ITISFoundation:master Jun 17, 2025
59 checks passed
@odeimaiz odeimaiz deleted the fix/e2e-3d branch June 17, 2025 10:29
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify e2e Bugs found by or related to the end-2-end testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants