Closed dman777 closed 4 years ago
Ah, that's a good question. I think I would always run these kinds of tests with mock data, or with no data at all (so either both the golden screenshots and the tests have user:
, or you always populate the tests with fake data). I generate my golden screenshots from the actual tests being run, so they should always match.
I really enjoyed and got a lot out of your article Automatic visual diffing with Puppeteer. Question, please.... when using this in a application at work.... if the screen being diffed is like a account page and shows
user: John
and the comps UX gave are justuser:
, can that being handled in the test somehow? Otherwise I believe it will fail because the app screenshot will haveuser: John
and the UX comp will have justuser:
.