fix(segmentation): List surface representations in the segmentation table for 3D views. (#5700)
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
This commit is contained in:
1 parent
83c9ce0f5f
commit
82e6a18735
27 files changed
+356
-293
No files matched your search
@@ -0,0 +1,29 @@
|
||||
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);
|
||||
});
|
||||
Reference in new issue
Block a user