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

+16
View File
@@ -0,0 +1,16 @@
import type { RightPanelPageObject } from '../pages';
// Hide all segments, to show only the nth one and makes it the active segment
export async function contourShowOnlyNthSegment({
segmentationPanel,
index = 0,
}: {
segmentationPanel: RightPanelPageObject['contourSegmentationPanel'];
index?: number;
}) {
await segmentationPanel.segmentsVisibilityToggle.click();
const segment = segmentationPanel.panel.nthSegment(index);
await segment.toggleVisibility();
await segment.click();
return segment;
}