#Visual regression testing idea
Visual regression testing is pretty asked in big applications because of several reason but I expierienced that they're pretty hard to setup. I'm thinking of a way easier approach than screenshoting and doing pixel diffs.
The idea is the following:
- Define a list of all Html elements that should be watched
- With a styling change, define on which element you expect a change
- Simply diff the "getComputedStyle" of every element on this list
braindump:
that could be a service or checked in which the change itself