* 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>
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
import {
|
|
checkForScreenshot,
|
|
screenShotPaths,
|
|
test,
|
|
visitStudy,
|
|
waitForPaintToSettle,
|
|
} from './utils';
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
const studyInstanceUID = '1.3.12.2.1107.5.2.32.35162.30000015050317233592200000046';
|
|
const mode = 'viewer';
|
|
await visitStudy(page, studyInstanceUID, mode, 2000);
|
|
});
|
|
|
|
test('should launch MPR with unhydrated SEG', async ({
|
|
page,
|
|
leftPanelPageObject,
|
|
mainToolbarPageObject,
|
|
rightPanelPageObject,
|
|
viewportPageObject,
|
|
}) => {
|
|
await rightPanelPageObject.toggle();
|
|
await leftPanelPageObject.loadSeriesByDescription('SEG');
|
|
|
|
await page.waitForTimeout(5000);
|
|
|
|
await checkForScreenshot(
|
|
page,
|
|
viewportPageObject.grid,
|
|
screenShotPaths.segNoHydrationThenMPR.segNoHydrationPreMPR
|
|
);
|
|
|
|
await mainToolbarPageObject.layoutSelection.MPR.click();
|
|
|
|
await page.waitForTimeout(5000);
|
|
await waitForPaintToSettle(page);
|
|
|
|
await checkForScreenshot(
|
|
page,
|
|
viewportPageObject.grid,
|
|
screenShotPaths.segNoHydrationThenMPR.segNoHydrationPostMPR
|
|
);
|
|
});
|