fix(overlay-menu): Adding, changing and removing segmentation overlays should update the overlay menu instantly (#5181)

This commit is contained in:
Joe Boccanfuso authored and GitHub committed 2025-07-07 18:09:32 -04:00
1 parent b8b14b8940
commit f08cc303e6
21 files changed
+164 -12

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ import { Locator, Page } from 'playwright';
type CheckForScreenshotProps = {
page: Page;
locator: Locator | Page;
locator?: Locator | Page;
screenshotPath: string;
attempts?: number;
delay?: number;
@@ -14,7 +14,7 @@ type CheckForScreenshotProps = {
const _checkForScreenshot = async (props: CheckForScreenshotProps) => {
const {
page,
locator,
locator = page,
screenshotPath,
attempts = 10,
delay = 500,
+9
View File
@@ -164,6 +164,15 @@ const screenShotPaths = {
jumpToMeasurementAfterSeriesChange:
'jumpToMeasurementMPR-jumpToMeasurementAfterSeriesChange.png',
},
dataOverlayMenu: {
overlayMenuWithSegmentationSelected: 'overlayMenuWithSegmentationSelected.png',
overlayMenuWith2d_tta_nnU_Net_SegmentationSelected:
'overlayMenuWith2d_tta_nnU_Net_SegmentationSelected.png',
overlayMenuWithSegmentationOverlaysRemoved: 'overlayMenuWithSegmentationOverlaysRemoved.png',
overlay2d_tta_nnU_Net_Segmentation: 'overlay2d_tta_nnU_Net_Segmentation.png',
overlaySegmentation: 'overlaySegmentation.png',
noOverlay: 'noOverlay.png',
},
};
export { screenShotPaths };