tests(increase-coverage): weekly tests PR (#4221)

This commit is contained in:
Ibrahim authored and GitHub committed 2024-06-12 10:36:13 -04:00
1 parent 727088f3dc
commit 09853abc52
23 files changed
+240 -2

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
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 = 'Basic Viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
test('should reset the image to its original state', async ({ page }) => {
await page.getByTestId('MoreTools-split-button-secondary').click();
await page.getByTestId('rotate-right').click();
await page.getByTestId('MoreTools-split-button-secondary').click();
await page.getByTestId('invert').click();
await page.getByTestId('MoreTools-split-button-secondary').click();
await page.getByTestId('Reset').click();
await checkForScreenshot(page, page, screenShotPaths.reset.resetDisplayedCorrectly);
});