init
This commit is contained in:
10
tests/utils/clearAllAnnotations.ts
Normal file
10
tests/utils/clearAllAnnotations.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
const clearAllAnnotations = async page => {
|
||||
await page.evaluate(
|
||||
({ cornerstoneTools }: AppTypes.Test) => {
|
||||
cornerstoneTools.annotation.state.removeAllAnnotations();
|
||||
},
|
||||
await page.evaluateHandle('window')
|
||||
);
|
||||
};
|
||||
|
||||
export { clearAllAnnotations };
|
||||
Reference in New Issue
Block a user