2025-11-20 15:29:14 +01:00
|
|
|
import { checkForScreenshot, screenShotPaths, test, visitStudy } from './utils';
|
2024-06-12 16:36:13 +02:00
|
|
|
|
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
|
|
|
const studyInstanceUID = '2.16.840.1.114362.1.11972228.22789312658.616067305.306.2';
|
2025-01-29 19:36:52 +01:00
|
|
|
const mode = 'viewer';
|
2024-06-12 16:36:13 +02:00
|
|
|
await visitStudy(page, studyInstanceUID, mode, 2000);
|
|
|
|
|
});
|
|
|
|
|
|
2026-05-18 16:36:05 +02:00
|
|
|
test('should flip the image horizontally', async ({
|
|
|
|
|
page,
|
|
|
|
|
mainToolbarPageObject,
|
|
|
|
|
viewportPageObject,
|
|
|
|
|
}) => {
|
2025-11-20 15:29:14 +01:00
|
|
|
await mainToolbarPageObject.moreTools.flipHorizontal.click();
|
2026-05-18 16:36:05 +02:00
|
|
|
|
2024-06-12 16:36:13 +02:00
|
|
|
await checkForScreenshot(
|
|
|
|
|
page,
|
2026-05-18 16:36:05 +02:00
|
|
|
viewportPageObject.grid,
|
2024-06-12 16:36:13 +02:00
|
|
|
screenShotPaths.flipHorizontal.flipHorizontalDisplayedCorrectly
|
|
|
|
|
);
|
|
|
|
|
});
|