ohif-viewer/tests/utils/getSUV.ts
dxlin b2c0faf29d
Test: Playwright tests for tmtv (#4331)
Co-authored-by: Ibrahim <93064150+IbrahimCSAE@users.noreply.github.com>
Co-authored-by: Ibrahim <ibrahim.mdev@gmail.com>
2024-08-15 21:57:04 -04:00

16 lines
391 B
TypeScript

const getSUV = async page => {
const SUV = await page.evaluate(
({ services }: AppTypes.Test) => {
const { measurementService } = services;
const measurements = measurementService.getMeasurements();
const displayText = measurements[0].displayText;
return displayText[2];
},
await page.evaluateHandle('window')
);
return SUV;
};
export { getSUV };