ohif-viewer/tests/FlipHorizontal.spec.ts
2025-04-16 15:56:52 -04:00

19 lines
648 B
TypeScript

import { test } from 'playwright-test-coverage';
import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '2.16.840.1.114362.1.11972228.22789312658.616067305.306.2';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
test('should flip the image horizontally', async ({ page }) => {
await page.getByTestId('MoreTools-split-button-secondary').click();
await page.getByTestId('flipHorizontal').click();
await checkForScreenshot(
page,
page,
screenShotPaths.flipHorizontal.flipHorizontalDisplayedCorrectly
);
});