fix: ohif tests to run with cornerstone 3d 5.0 (#6043)
* chore(tests): Update multiple screenshot test images for various specs * feat(screenshot-reviewer): Add screenshot review tool and update package.json scripts * fix(DICOMSRDisplayTool): Improve actor presence check in viewport * chore(tests): Update multiple screenshot assets for various specs * chore(tests): Integrate waitForPaintToSettle and waitForViewportsRendered in multiple specs for improved rendering stability * chore(tests): Update screenshot assets for SEGHydration and SEGNoHydration specs * test: update progressive loading screenshots * jest 30 test fixes for compatibility with pnpm cs3d * Use correct setDisplaySets instead of setDataId * fix: Naming change for LegacyVolumeViewport3D * Update to allow tolerance for contour tests * update * fix * refactor: Replace instanceof checks with utility functions for viewport type validation * fix: Update createSegmentationForViewport to handle undefined displaySetInstanceUID gracefully * bun lock * fix: Install cs3d with pnpm instead of bun * Update node version for playwright * Update to v5.0.0 of cs3d * fix: Build dependency * audit * Change to a web await retry assert * Fix timing related test failures * fix: Freehand close --------- Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
This commit is contained in:
1 parent
a27f779f0b
commit
6dd150d401
172 files changed
+3081
-1866
No files matched your search
@@ -3,6 +3,7 @@ import {
|
||||
screenShotPaths,
|
||||
test,
|
||||
visitStudy,
|
||||
waitForPaintToSettle,
|
||||
waitForViewportRenderCycle,
|
||||
waitForViewportsRendered,
|
||||
} from './utils';
|
||||
@@ -36,6 +37,10 @@ test('should properly display MPR for MR', async ({
|
||||
await leftPanelPageObject.loadSeriesByDescription('SEG');
|
||||
|
||||
await waitForViewportsRendered(page);
|
||||
// SEG load triggers an additional progressive labelmap upload after the
|
||||
// viewports first report 'rendered'; let that finish before screenshotting.
|
||||
await page.waitForTimeout(1500);
|
||||
await waitForPaintToSettle(page);
|
||||
|
||||
await checkForScreenshot(
|
||||
page,
|
||||
@@ -49,6 +54,11 @@ test('should properly display MPR for MR', async ({
|
||||
await DOMOverlayPageObject.viewport.segmentationHydration.yes.click();
|
||||
|
||||
await viewportRenderCycle;
|
||||
// Hydration propagates the labelmap volume to the sagittal/coronal MPR
|
||||
// viewports asynchronously; wait for that propagation to render before
|
||||
// capturing.
|
||||
await page.waitForTimeout(1500);
|
||||
await waitForPaintToSettle(page);
|
||||
|
||||
await checkForScreenshot(
|
||||
page,
|
||||
@@ -61,6 +71,8 @@ test('should properly display MPR for MR', async ({
|
||||
await mainToolbarPageObject.layoutSelection.axialPrimary.click();
|
||||
|
||||
await viewportRenderAfterLayoutChange;
|
||||
await page.waitForTimeout(1000);
|
||||
await waitForPaintToSettle(page);
|
||||
|
||||
await checkForScreenshot(
|
||||
page,
|
||||
|
||||
Reference in new issue
Block a user