test(playwright): move readme, add video tutorial (#4156)

This commit is contained in:
Ibrahim authored and GitHub committed 2024-05-22 11:48:00 -04:00
1 parent 24291c3a11
commit 4fcee5d449
5 files changed
+163 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { test } from '@playwright/test';
import { visitStudy, checkForScreenshot, screenShotPaths, simulateDrag } from './utils';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
await visitStudy(page, studyInstanceUID, mode);
});
test('should display the length tool', async ({ page }) => {
await page.getByTestId('MeasurementTools-split-button-primary').click();
const locator = page.locator('.cornerstone-canvas');
await simulateDrag(page, locator);
await checkForScreenshot(page, page, screenShotPaths.length.lengthDisplayedCorrectly);
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

+3
View File
@@ -5,6 +5,9 @@ const screenShotPaths = {
mpr: {
mprDisplayedCorrectly: 'mprDisplayedCorrectly.png',
},
length: {
lengthDisplayedCorrectly: 'lengthDisplayedCorrectly.png',
},
};
export { screenShotPaths };