-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Widget testing with FlareActor #123
Comments
I am able to build the widget for testing, but it doesn't ever call initialize for the controller. So I have basic unit tests to see if there is a widget, but I can't test anything with the animations because the art board never gets initialized. |
Take a look at this response in a similar issue: #160 (comment) |
@luigi-rosso |
@luigi-rosso how would you go about generating more flares? So i am able to initialize the flare and compare that to a golden. But I can't seem to get the animation to run again to change the tested animation. |
flutter: 1.5.4-hotfix.2
flare_flutter: 1.5.2
Hi, I'm attempting to run basic widget tests on pages that include a
FlareActor
, which result in the following error:Here is the flutter test I'm running:
Is there a suggested way to allow these tests to complete? As a workaround I've been navigating away from the page allowing the FlareActor to be disposed and the test to complete, but just wondering if there is a better way to test widgets containing FlareActors.
I believe this may be the same issue as mentioned in a comment in #69
Thanks
The text was updated successfully, but these errors were encountered: