test(contour): Add the ContourSegmentToggleLock.spec.ts test file to test contour locking (#6072)
This commit is contained in:
1 parent
1f6670c602
commit
b24f039735
10 files changed
+253
-55
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user