Visual regression testing for react-pdf #2749
TimKochDev
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
I wonder if there's a playwright way to see if the text on the pdf matches one of my pages. because we have a page and a generated pdf that we want to always have the same content |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone, my apps heavily rely on this awesome react-pdf package. Since sometimes version updates unfortunately include breaking layout changes, I had to find a way to do visual regression testing for the PDFs I generate. IIn case you have similar needs, here is what I came up with:
https://gist.github.com/TimKochDev/fff7b39d374d20b9996bf8094be2510a
Beta Was this translation helpful? Give feedback.
All reactions