2025-11-20 15:29:14 +01:00
|
|
|
import { checkForScreenshot, screenShotPaths, test, visitStudy } from './utils';
|
2025-06-27 13:11:46 +02:00
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
});
|
|
|
|
|
|
2025-12-12 17:46:45 +01:00
|
|
|
test('should launch MPR with unhydrated SEG', async ({
|
|
|
|
|
page,
|
|
|
|
|
leftPanelPageObject,
|
|
|
|
|
mainToolbarPageObject,
|
|
|
|
|
rightPanelPageObject,
|
|
|
|
|
}) => {
|
|
|
|
|
await rightPanelPageObject.toggle();
|
|
|
|
|
await leftPanelPageObject.loadSeriesByDescription('SEG');
|
2025-06-27 13:11:46 +02:00
|
|
|
|
2025-07-31 06:21:26 +02:00
|
|
|
await page.waitForTimeout(5000);
|
|
|
|
|
|
2025-06-27 13:11:46 +02:00
|
|
|
await checkForScreenshot(page, page, screenShotPaths.segNoHydrationThenMPR.segNoHydrationPreMPR);
|
|
|
|
|
|
2025-11-20 15:29:14 +01:00
|
|
|
await mainToolbarPageObject.layoutSelection.MPR.click();
|
2025-06-27 13:11:46 +02:00
|
|
|
|
2025-07-31 06:21:26 +02:00
|
|
|
await page.waitForTimeout(5000);
|
|
|
|
|
|
2025-06-27 13:11:46 +02:00
|
|
|
await checkForScreenshot(page, page, screenShotPaths.segNoHydrationThenMPR.segNoHydrationPostMPR);
|
|
|
|
|
});
|