Files
ohif-viewer/tests/FlipHorizontal.spec.ts

19 lines
640 B
TypeScript

import { test } from '@playwright/test';
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
);
});