ohif-viewer/tests/SEGHydrationThen3DOnly.spec.ts

31 lines
985 B
TypeScript

import { expect, test, visitStudy } from './utils';
test.beforeEach(
async ({
page,
rightPanelPageObject,
leftPanelPageObject,
DOMOverlayPageObject,
mainToolbarPageObject,
}) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.256467663913010332776401703474716742458';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
await rightPanelPageObject.toggle();
await leftPanelPageObject.loadSeriesByDescription('SEG');
await DOMOverlayPageObject.viewport.segmentationHydration.yes.click();
await page.waitForTimeout(5000);
await mainToolbarPageObject.layoutSelection.threeDOnly.click();
await page.waitForTimeout(5000);
}
);
test('should list segments in side panel for 3D only view', async ({ rightPanelPageObject }) => {
await expect(
rightPanelPageObject.labelMapSegmentationPanel.panel.rows,
'The side panel should list 13 segments for the 3D only view.'
).toHaveCount(13);
});