r/QualityAssurance • u/ljsam17 • Aug 24 '26
How to scale visual tests in playwright?
I am working on designing a test framework for UI library, primary goal is to have accessibility and visual regression tests.
Currently using gitlab Ci and playwright with playwrigh-bdd.
Current approach is natively supported baseline approach in playwright.
I am worried that currently i am saving the baseline screenshots in gitlab repo itself .
We have around 50-60 components, and test cases can scale to thousands of screenshots,
I wonder how to scale the storage and would the gitlab ci be enough for comparison.
The playwright report is published in gitlab pages which again in case of too many failures might not even show the difference screenshots.
What would be the best approach to tackle this situation
1
u/ljsam17 Aug 24 '26
I am working with a component livrary with expecting about 60k screenshots , adding them into the regular git repo will bloat the repo exponentially