test: update Test/tmtv for v3.10.0-beta.136 (#4893)

This commit is contained in:
dxlin 2025-03-31 09:10:31 -04:00 committed by GitHub
parent 7f3fb9bb61
commit d9473e8db2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 12 deletions

View File

@ -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');

View File

@ -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');

View File

@ -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);

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB