wix / Detox

Gray box end-to-end testing and automation framework for mobile apps
https://wix.github.io/Detox/
MIT License
11.16k stars 1.92k forks source link

[Website] Create a visual regression test suite #3838

Closed noomorph closed 1 year ago

noomorph commented 1 year ago

Description

Promo-image

We could start from a simple set of test pages:

Reportedly, the easiest way to start is Percy Snapshots:

https://docs.percy.io/docs/percy-snapshot

You can see a similar use case here:

Although, I'd advise sticking with snapshots.yml (YAML format) just like the docs say.

noomorph commented 1 year ago

@moutro, so what is left now is to create a GitHub actions step for that. Please make it conditional, e.g., by using this advice. The condition would be: if there are changes in website/src/css files, run the regression test step (percy ...).

moutro commented 1 year ago

@moutro, so what is left now is to create a GitHub actions step for that. Please make it conditional, e.g., by using this advice. The condition would be: if there are changes in website/src/css files, run the regression test step (percy ...).

Thanks for the doc and instructions. Created a GH Actions step - see PR#3866 linked here for review.