CleverCloud / clever-components

Collection of Web Components by Clever Cloud
https://www.clever-cloud.com/doc/clever-components/
Apache License 2.0
215 stars 19 forks source link

Web Test Runner: add visual regression tests #1069

Closed florian-sanders-cc closed 3 weeks ago

florian-sanders-cc commented 4 weeks ago

Context

Modern Web has developed a test-runner-visual-regression package that may be used with Web Test Runner to take screenshots of stuff and compare to the previous screenshot of the same stuff.

It is fairly agnostic (which is great) and can easily be used to compare stories before & after modifications.

I've played with it within the components repo and it worked + it's fairly easy to integrate.

The only drawback is that you have to commit the screenshots so it's able to compare them. I believe they are fairly low weight but I need to check.