fix(3DSegmentation): [Bug] The viewports become blank when loading the seg file in advanced layout after closing the seg file from any other advanced layout (#5505)
This commit is contained in:
1 parent
afa9131da1
commit
76f7d4e23a
25 files changed
+189
-208
No files matched your search
@@ -0,0 +1,49 @@
|
||||
import { test } from 'playwright-test-coverage';
|
||||
import {
|
||||
visitStudy,
|
||||
checkForScreenshot,
|
||||
screenShotPaths,
|
||||
reduce3DViewportSize,
|
||||
attemptAction,
|
||||
} from './utils';
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785';
|
||||
const mode = 'viewer';
|
||||
await visitStudy(page, studyInstanceUID, mode, 2000);
|
||||
});
|
||||
|
||||
test.describe('3D four up SEG hydration', async () => {
|
||||
test('should properly hydrate SEG from 3D four up layout', async ({ page }) => {
|
||||
await page.getByTestId('Layout').click();
|
||||
await page.getByTestId('3D four up').click();
|
||||
|
||||
await attemptAction(() => reduce3DViewportSize(page), 10, 100);
|
||||
|
||||
await page.waitForTimeout(5000);
|
||||
|
||||
await checkForScreenshot(
|
||||
page,
|
||||
page,
|
||||
screenShotPaths.segHydrationFrom3DFourUp.threeDFourUpBeforeSEG
|
||||
);
|
||||
|
||||
await page.getByTestId('study-browser-thumbnail-no-image').dblclick();
|
||||
|
||||
await page.waitForTimeout(5000);
|
||||
await checkForScreenshot(
|
||||
page,
|
||||
page,
|
||||
screenShotPaths.segHydrationFrom3DFourUp.threeDFourUpAfterSEG
|
||||
);
|
||||
|
||||
await page.getByTestId('yes-hydrate-btn').click();
|
||||
|
||||
await page.waitForTimeout(5000);
|
||||
await checkForScreenshot(
|
||||
page,
|
||||
page,
|
||||
screenShotPaths.segHydrationFrom3DFourUp.threeDFourUpAfterSegHydrated
|
||||
);
|
||||
});
|
||||
});
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 286 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 401 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 265 KiB |
@@ -127,6 +127,11 @@ const screenShotPaths = {
|
||||
mprAfterSegHydrated: 'mprAfterSegHydrated.png',
|
||||
mprAfterSegHydratedAfterLayoutChange: 'mprAfterSegHydratedAfterLayoutChange.png',
|
||||
},
|
||||
segHydrationFrom3DFourUp: {
|
||||
threeDFourUpBeforeSEG: 'threeDFourUpBeforeSEG.png',
|
||||
threeDFourUpAfterSEG: 'threeDFourUpAfterSEG.png',
|
||||
threeDFourUpAfterSegHydrated: 'threeDFourUpAfterSegHydrated.png',
|
||||
},
|
||||
segNoHydrationThenMPR: {
|
||||
segNoHydrationPreMPR: 'segNoHydrationPreMpr.png',
|
||||
segNoHydrationPostMPR: 'segNoHydrationPostMpr.png',
|
||||
|
||||
Reference in new issue
Block a user