ui(components): migrates to new toolbar ui components and Numeric for Input InputRange and InputDoubleRange (#4728)

Co-authored-by: sedghi <ar.sedghi@gmail.com>
This commit is contained in:
Dan Rukasandsedghi authored and GitHub committed 2025-01-29 13:36:52 -05:00
1 parent ac5ae4a29e
commit a8d84443a9
116 files changed
+2930 -1038

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import {
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -9,7 +9,7 @@ import {
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -9,7 +9,7 @@ import {
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -9,7 +9,7 @@ import {
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElemen
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElemen
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElemen
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElemen
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -40,7 +40,7 @@ const increaseSlabThickness = async (page: Page, id: string, lineNumber: number,
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
await initilizeMousePositionTracker(page);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElemen
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ 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';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElemen
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElemen
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index.j
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElemen
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.2.840.113619.2.290.3.3767434740.226.1600859119.501';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElemen
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ 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';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.256467663913010332776401703474716742458';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths } from './utils';
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.7695.4007.324475281161490036195179843543';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths, simulateClicksOnElemen
test.beforeEach(async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.25403.345050719074.3824.20170125095438.5';
const mode = 'Basic Viewer';
const mode = 'viewer';
await visitStudy(page, studyInstanceUID, mode, 2000);
});
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, scrollVolumeViewport } from './utils';
test.skip('PT should show slice closest to CT', async ({ page }) => {
const studyInstanceUID = '1.2.840.113619.2.290.3.3767434740.226.1600859119.501';
const mode = 'Total Metabolic Tumor Volume';
const mode = 'tmtv';
await visitStudy(page, studyInstanceUID, mode);
const vp = page.getByTestId('viewport-pane');
+1 -1
View File
@@ -10,7 +10,7 @@ test.skip('pets where SUV cannot be calculated should show same unit in TMTV as
page,
}) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.7009.2403.871108593056125491804754960339';
const mode = 'Total Metabolic Tumor Volume';
const mode = 'tmtv';
await visitStudy(page, studyInstanceUID, mode, 10000);
// Change to image where SUV cannot be calculated
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, simulateClicksOnElement, getSUV, clearAllAnnotations } from
test.skip('should update SUV values correctly.', async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.7009.2403.871108593056125491804754960339';
const mode = 'Total Metabolic Tumor Volume';
const mode = 'tmtv';
await visitStudy(page, studyInstanceUID, mode, 10000);
// Create ROI
+1 -1
View File
@@ -3,7 +3,7 @@ import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index.j
test.skip('should render TMTV correctly.', async ({ page }) => {
const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.7009.2403.871108593056125491804754960339';
const mode = 'Total Metabolic Tumor Volume';
const mode = 'tmtv';
await visitStudy(page, studyInstanceUID, mode, 10000);
await checkForScreenshot(page, page, screenShotPaths.tmtvRendering.tmtvDisplayedCorrectly, 100);
});
+4 -3
View File
@@ -15,9 +15,10 @@ export async function visitStudy(
delay: number = 0,
datasources = 'ohif'
) {
await page.goto(`/?resultsPerPage=100&datasources=${datasources}`);
await page.getByTestId(studyInstanceUID).click();
await page.getByRole('button', { name: mode }).click();
// await page.goto(`/?resultsPerPage=100&datasources=${datasources}`);
// await page.getByTestId(studyInstanceUID).click();
// await page.getByRole('button', { name: mode }).click();
await page.goto(`/${mode}/${datasources}?StudyInstanceUIDs=${studyInstanceUID}`);
await page.waitForLoadState('domcontentloaded');
await page.waitForLoadState('networkidle');
await page.waitForTimeout(delay);