kitconcept / volto-light-theme

https://light-theme.kitconcept.io
12 stars 9 forks source link

Add support for visual testing #383

Closed reekitconcept closed 2 weeks ago

reekitconcept commented 6 months ago

Visual tests mean that a series of pages are visited in the site, and the test passes if the page matches visually to a visual snapshot. This can detect css deviations and other visual errors. (It can also yield false positives, which has to be taken into consideration).

Visual tests are run by cypress, (similar to a11y tests) and there is a cypress plugin that can do the visual comparison. A given threshold of difference is accepted, otherwise the test will fail. In interactive mode, the difference for failing tests. is highlighted from the cypress test runner.

Objectives are:

We have this working in a customer project so the objective is to move all code to the light theme (or maybe directly to the Volto core if that turns out to be more beneficial).

sneridagh commented 2 weeks ago

merged