You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been noticing golden errors in our project when using a rive animation. The error occurs if the test widget is being pumped three times (or more) in a test. As soon as three pumps are used, the golden comparison including a rive animation gets a very small diff where some pixels are being rendered different. This is blocking our UI testing since we can't get consistent results from the rive animation. We've tested on different rive animations with the same inconsistent result.
Steps To Reproduce
Steps to reproduce the behavior:
Run a golden test including any rive animation, e.g:
The golden test comparison should be consistent when using several pumps. It should be the same when updating the golden using 3 pumps and then running the same test using 3 pumps. Currently it is not.
Screenshots
Test image (using our internal rive since it is a bit more clear on the diff):
Description
We've been noticing golden errors in our project when using a rive animation. The error occurs if the test widget is being pumped three times (or more) in a test. As soon as three pumps are used, the golden comparison including a rive animation gets a very small diff where some pixels are being rendered different. This is blocking our UI testing since we can't get consistent results from the rive animation. We've tested on different rive animations with the same inconsistent result.
Steps To Reproduce
Steps to reproduce the behavior:
flutter test --update-goldens
flutter test
Source
.riv
/.rev
fileThis seems to happen for any riv used, but here's one downloaded from the community which gives this error:
Cat_Rive.zip
Expected behavior
The golden test comparison should be consistent when using several pumps. It should be the same when updating the golden using 3 pumps and then running the same test using 3 pumps. Currently it is not.
Screenshots
Test image (using our internal rive since it is a bit more clear on the diff):
Golden failure isolated diff
Device & Versions
Additional context
This could be related to the ticker issue described in #187
The text was updated successfully, but these errors were encountered: