playwright-community / playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
https://playwright-community.github.io/playwright-go/
MIT License
1.94k stars 145 forks source link

Easy replacement of the screenshot of the standard #337

Open ivanqa2022 opened 1 year ago

ivanqa2022 commented 1 year ago

I don't know how popular it is. But for us it is very valuable. We collect a pool of standards screenshots from the bonus section of our project. For each geo, we have translated the text, as well as other currencies. We collected standards and made sure that they are correct. Quite often, something can go wrong and automation can lose the correct translation and other problems. Therefore, we made a test comparing the results with the standard. But when the bonuses change, it's hard for us to pinpoint corrections to the benchmarks. Is it possible to make a cool button in the report, when the screenshot did not match the standard, in one kick to replace the old standard with a new screenshot?