tests(increase-coverage): weekly tests PR (#4221)
This commit is contained in:
1 parent
727088f3dc
commit
09853abc52
23 files changed
+240
-2
No files matched your search
@@ -0,0 +1,25 @@
|
||||
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.describe('3D main Test', async () => {
|
||||
test('should render 3D main correctly.', async ({ page }) => {
|
||||
await page.getByTestId('Layout').click();
|
||||
await page
|
||||
.locator('div')
|
||||
.filter({ hasText: /^3D main$/ })
|
||||
.first()
|
||||
.click();
|
||||
await checkForScreenshot(
|
||||
page,
|
||||
page,
|
||||
screenShotPaths.threeDMain.threeDMainDisplayedCorrectly,
|
||||
200
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user