openfoodfacts / smooth-app

🤳🥫 The new Open Food Facts mobile application for Android and iOS, crafted with Flutter and Dart
https://world.openfoodfacts.org/open-food-facts-mobile-app?utm_source=off&utf_medium=web&utm_campaign=github-repo
Apache License 2.0
800 stars 275 forks source link

Screenshot testing infrastructure for Smoothie #529

Closed jasmeet0817 closed 2 years ago

jasmeet0817 commented 3 years ago

Epic: #528

Description

Add screenshot testing infrastructure and some screenshot tests for the Smoothie app.

Acceptance criteria

Tests run and find any unaccounted for UI changes. Tests should run on each pull request.

What would a demo look like

Create a buggy change and try to pull it into the main repo, the test should catch it.

Tasks

Piinks commented 2 years ago

Screenshot testing was added in #557, and it runs on every PR. I am not sure if every desired screen has an image associated with it, enumerating them here would allow us to account for each one.

teolemon commented 2 years ago

Thanks @Piinks for solving this one. Closing 👍