diff --git a/tests/TMTVModalityUnit.spec.ts b/tests/TMTVModalityUnit.spec.ts index f0540900b..c445ebdeb 100644 --- a/tests/TMTVModalityUnit.spec.ts +++ b/tests/TMTVModalityUnit.spec.ts @@ -9,15 +9,16 @@ import { test.skip('pets where SUV cannot be calculated should show same unit in TMTV as in Basic Viewer.', async ({ page, }) => { - const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.7009.2403.871108593056125491804754960339'; + const studyInstanceUID = '1.2.840.113619.2.290.3.3767434740.226.1600859119.501'; const mode = 'tmtv'; await visitStudy(page, studyInstanceUID, mode, 10000); - // Change to image where SUV cannot be calculated + // Show sidebar await page.getByTestId('side-panel-header-left').click(); - await page - .getByRole('button', { name: 'S: 2 311 PET NAC' }) - .dragTo(page.getByTestId('viewport-grid').locator('canvas').nth(3)); + + // Change to image where SUV cannot be calculated + await page.getByTestId('viewport-grid').locator('canvas').nth(3).click(); + await page.getByRole('button', { name: 'NAC' }).nth(1).dblclick(); // Wait for the new series to load await page.waitForLoadState('networkidle'); diff --git a/tests/TMTVRecalculate.spec.ts b/tests/TMTVRecalculate.spec.ts index 825f1c5bd..75c3c2d81 100644 --- a/tests/TMTVRecalculate.spec.ts +++ b/tests/TMTVRecalculate.spec.ts @@ -2,7 +2,7 @@ import { expect, test } from '@playwright/test'; import { visitStudy, simulateClicksOnElement, getSUV, clearAllAnnotations } from './utils/index'; 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 studyInstanceUID = '1.2.840.113619.2.290.3.3767434740.226.1600859119.501'; const mode = 'tmtv'; await visitStudy(page, studyInstanceUID, mode, 10000); @@ -31,7 +31,7 @@ test.skip('should update SUV values correctly.', async ({ page }) => { let oldSUV = await getSUV(page); // Change PT Weight - await page.getByTestId('input-weight-input').fill('31'); + await page.locator('#weight-input').fill('31'); await page.getByText('Reload Data').click(); await page.waitForLoadState('networkidle'); // Get new SUV text @@ -43,10 +43,9 @@ test.skip('should update SUV values correctly.', async ({ page }) => { // Change total dose await page - .getByText('Patient SexWeight kgTotal') .locator('div') .filter({ hasText: /^Total Dose bq$/ }) - .getByTestId('input-undefined') + .getByRole('textbox') .fill('1888020304'); await page.getByText('Reload Data').click(); await page.waitForLoadState('networkidle'); @@ -60,10 +59,9 @@ test.skip('should update SUV values correctly.', async ({ page }) => { // Change injection time await page - .getByText('Patient SexWeight kgTotal') .locator('div') .filter({ hasText: /^Injection Time s$/ }) - .getByTestId('input-undefined') + .getByRole('textbox') .fill('060000'); await page.getByText('Reload Data').click(); await page.waitForLoadState('networkidle'); diff --git a/tests/TMTVRendering.spec.ts b/tests/TMTVRendering.spec.ts index 27eb74230..98f1357ac 100644 --- a/tests/TMTVRendering.spec.ts +++ b/tests/TMTVRendering.spec.ts @@ -2,7 +2,7 @@ import { test } from '@playwright/test'; import { visitStudy, checkForScreenshot, screenShotPaths } from './utils/index.js'; test.skip('should render TMTV correctly.', async ({ page }) => { - const studyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.7009.2403.871108593056125491804754960339'; + const studyInstanceUID = '1.2.840.113619.2.290.3.3767434740.226.1600859119.501'; const mode = 'tmtv'; await visitStudy(page, studyInstanceUID, mode, 10000); await checkForScreenshot(page, page, screenShotPaths.tmtvRendering.tmtvDisplayedCorrectly, 100); diff --git a/tests/screenshots/chromium/TMTVRendering.spec.ts/tmtvDisplayedCorrectly.png b/tests/screenshots/chromium/TMTVRendering.spec.ts/tmtvDisplayedCorrectly.png new file mode 100644 index 000000000..662088835 Binary files /dev/null and b/tests/screenshots/chromium/TMTVRendering.spec.ts/tmtvDisplayedCorrectly.png differ