2025-12-12 17:46:45 +01:00
|
|
|
import { checkForScreenshot, screenShotPaths, test, visitStudy } from './utils';
|
2024-06-26 04:17:12 +02:00
|
|
|
|
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
|
|
|
const studyInstanceUID = '1.2.840.113619.2.290.3.3767434740.226.1600859119.501';
|
2025-01-29 19:36:52 +01:00
|
|
|
const mode = 'viewer';
|
2024-06-26 04:17:12 +02:00
|
|
|
await visitStudy(page, studyInstanceUID, mode, 2000);
|
|
|
|
|
});
|
|
|
|
|
|
2025-12-12 17:46:45 +01:00
|
|
|
test('should hydrate RT reports correctly', async ({
|
|
|
|
|
page,
|
|
|
|
|
DOMOverlayPageObject,
|
|
|
|
|
leftPanelPageObject,
|
|
|
|
|
rightPanelPageObject,
|
|
|
|
|
}) => {
|
|
|
|
|
await rightPanelPageObject.toggle();
|
|
|
|
|
await leftPanelPageObject.loadSeriesByModality('RTSTRUCT');
|
2025-09-19 15:25:32 +02:00
|
|
|
await page.waitForTimeout(5000);
|
2024-06-26 04:17:12 +02:00
|
|
|
await checkForScreenshot(page, page, screenShotPaths.rtHydration.rtPreHydration);
|
2025-09-19 15:25:32 +02:00
|
|
|
|
2025-12-12 17:46:45 +01:00
|
|
|
await DOMOverlayPageObject.viewport.segmentationHydration.yes.click();
|
2025-09-19 15:25:32 +02:00
|
|
|
await page.waitForTimeout(5000);
|
2024-06-26 04:17:12 +02:00
|
|
|
await checkForScreenshot(page, page, screenShotPaths.rtHydration.rtPostHydration);
|
2025-09-19 15:25:32 +02:00
|
|
|
|
2025-12-12 17:46:45 +01:00
|
|
|
await rightPanelPageObject.labelMapSegmentationPanel.panel
|
|
|
|
|
.segmentationByText('Small Sphere')
|
|
|
|
|
.click();
|
2025-09-19 15:25:32 +02:00
|
|
|
await page.waitForTimeout(5000);
|
2024-06-26 04:17:12 +02:00
|
|
|
await checkForScreenshot(page, page, screenShotPaths.rtHydration.rtJumpToStructure);
|
|
|
|
|
});
|