Add visual regression testing with Playwright Snapshots? #661
-
Hello. Would you be interested in me opening a PR to add visual regression testing? tl;dr is that you can use Microsoft's Playwright test runner to take before-and-after screenshots of certain parts of the site, such as the footer. If the change was intentional, then you regenerate the snapshots. Otherwise, you have to fix your change to not regress. See Qiskit/qiskit_sphinx_theme#345 for more details and an example of what this PR might look like. Imo, the main downside is the user needs to have Docker installed and running to test the snapshots so that local and CI are consistent. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, please do! No promises that I'll merge it as-is, but I'd love to have PR to either just merge or build off of! :) |
Beta Was this translation helpful? Give feedback.
Yes, please do! No promises that I'll merge it as-is, but I'd love to have PR to either just merge or build off of! :)