-
Task
-
Resolution: Merged
-
Should have
-
None
-
None
-
4
-
Block: Carousel Header, Testing
-
Sprint #102
In order to have reliable visual regression tests, we need to be able to run the instance of blocks without animation on request.
To do that, we could do the following:
- In the Gallery block, if a js variable named do-not-run-animation exists and is "true", animation should not be started
- In the backtopJS default configuration
a js script should be added that sets the above variable to "true"
(Documentation: Read about `onBeforeScript` at https://github.com/garris/BackstopJS#advanced-scenarios )
The js should be added in the repository for backstopJS and be called from the relevant parameter of https://github.com/greenpeace/planet4-backstop/blob/master/backstop.json
The final result should be that while gallery animation still works when opened via a browser, it does not work when called via backtopJS.