Skip to content

test(storyshots): reset SVG animations

Paul Gascou-Vaillancourt requested to merge remove-svg-animations into master

This MR moves the code for resetting SVG animations into a page.evaluate() hook. The previous attempt didn't have access to the actual document, which prevented it from finding any of the <animate> element.

Once these changes are applied, we should expect all SVG animations to be stopped and reset to their default state in storyshot's environment, making visual tests more reliable as they won't be affected by running animations anymore.

Edited by Paul Gascou-Vaillancourt

Merge request reports