react-styleguidist-visual
react-styleguidist-visual copied to clipboard
[feature] skip a visual test
So, I have a few components that use spinning animations and every time the test runs, it catches the spinner at a different phase, causing false positives.
I would like to be able to skip an example or a particular element from being considered in the screenshots.
The other option (the one we use in our current project) is to disable animations by injecting a CSS file with the following contents:
* {
animation: none !important;
transition: none !important;
}
I guess this could be possibly implemented by adding custom action type named "skip"
I think the filter argument is for that:
https://github.com/unindented/react-styleguidist-visual/blob/master/src/commands/test.js
--filter "spinner" "spinner2" or something like that