This was done by using an array of representation types instead of a single type for a panel. The first element of the array is the primary type of the panel, and the rest are secondary types that can also be displayed in the panel. PR feedback: - added test to check number of segments in side panel for 3D only view - fixed jumping to segment in 3D only view - fixed exception when adding contour segment in 3D only view
30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
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 }) => {
|
|
const numberOfSegments =
|
|
await rightPanelPageObject.labelMapSegmentationPanel.panel.getSegmentCount();
|
|
expect(numberOfSegments, 'The side panel should list 13 segments for the 3D only view.').toBe(13);
|
|
});
|