ohif-viewer/tests/utils/clearAllAnnotations.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

11 lines
266 B
TypeScript

const clearAllAnnotations = async page => {
await page.evaluate(
({ cornerstoneTools }: AppTypes.Test) => {
cornerstoneTools.annotation.state.removeAllAnnotations();
},
await page.evaluateHandle('window')
);
};
export { clearAllAnnotations };