test(contour): Add the ContourSegmentToggleLock.spec.ts test file to test contour locking (#6072)

This commit is contained in:
diattamo authored and GitHub committed 2026-06-23 01:52:35 -04:00
1 parent 1f6670c602
commit b24f039735
10 files changed
+253 -55

No files matched your search

+14 -6
View File
@@ -1,14 +1,22 @@
import { expect, test, visitStudy, getSvgAttribute, navigateWithViewportArrow } from './utils';
import {
expect,
test,
visitStudyAndHydrate,
getSvgAttribute,
navigateWithViewportArrow,
} from './utils';
const studyInstanceUID = '1.2.840.113619.2.290.3.3767434740.226.1600859119.501';
test.beforeEach(
async ({ page, leftPanelPageObject, DOMOverlayPageObject, rightPanelPageObject }) => {
const mode = 'segmentation';
await visitStudy(page, studyInstanceUID, mode, 2000);
await leftPanelPageObject.loadSeriesByModality('RTSTRUCT');
await page.waitForTimeout(5000);
await DOMOverlayPageObject.viewport.segmentationHydration.yes.click();
await visitStudyAndHydrate({
page,
leftPanelPageObject,
DOMOverlayPageObject,
studyInstanceUID,
modality: 'RTSTRUCT',
});
await rightPanelPageObject.contourSegmentationPanel.panel.nthSegment(0).click();
await page.waitForTimeout(1000);
}