fix(segmentation): Display "No description S:{series number} {modality}" for segmentations with no label. (#5874)
* Bump CS3D dependency to get the fallbackLabel field additions.
This commit is contained in:
1 parent
15f14e34e4
commit
7b5d0ce40e
23 files changed
+349
-228
No files matched your search
@@ -0,0 +1,29 @@
|
||||
import { expect, test, visitStudy } from './utils';
|
||||
|
||||
test('checks that segmentations created from series with no series description are labelled as "No description S:{series number} {modality}"', async ({
|
||||
rightPanelPageObject,
|
||||
leftPanelPageObject,
|
||||
DOMOverlayPageObject,
|
||||
page,
|
||||
}) => {
|
||||
const studyInstanceUID = '1.3.6.1.4.1.32722.99.99.62087908186665265759322018723889952421';
|
||||
const mode = 'segmentation'; // To also test add/remove
|
||||
await visitStudy(page, studyInstanceUID, mode, 2000);
|
||||
|
||||
const segmentationPanel = rightPanelPageObject.contourSegmentationPanel.menuButton;
|
||||
|
||||
// Switch to contour tab.
|
||||
await segmentationPanel.click();
|
||||
|
||||
await leftPanelPageObject.loadSeriesByModality('RTSTRUCT');
|
||||
await page.waitForTimeout(5000);
|
||||
await DOMOverlayPageObject.viewport.segmentationHydration.yes.click();
|
||||
|
||||
expect(rightPanelPageObject.contourSegmentationPanel.segmentationSelect.selectedValue).toHaveText(
|
||||
'No description S:4 RTSTRUCT'
|
||||
);
|
||||
|
||||
expect(
|
||||
await rightPanelPageObject.contourSegmentationPanel.segmentationSelect.nthSegmentation(0)
|
||||
).toHaveText('No description S:4 RTSTRUCT');
|
||||
});
|
||||
Reference in new issue
Block a user