Skip to content
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

Test fallling #78

Closed
RafaelR7 opened this issue Aug 29, 2019 · 2 comments
Closed

Test fallling #78

RafaelR7 opened this issue Aug 29, 2019 · 2 comments

Comments

@RafaelR7
Copy link

Hi, I'm having a problem with my tests, when I use a flushbar that contains an icon my test fail. The test is comparing the message/string of the flushbar. The key is inside the a text widget, the icon shouldn't be a problem, but when I run the test without the icon the test pass.
The test fails saying that it couldn't get the element.

Flushbar( margin: EdgeInsets.all(8), borderRadius: 8, icon: Icon( Icons.error_outline, size: 28.0, color: Colors.white, ), forwardAnimationCurve: Curves.fastLinearToSlowEaseIn, reverseAnimationCurve: Curves.decelerate, messageText: Text( message, style: Styles.snackbarText, key: key, ), onStatusChanged: (FlushbarStatus status) { flushbarStatus = status; }, backgroundColor: Styles.error, duration: Duration(milliseconds: 1500), )..show(context);

@AndreHaueisen
Copy link
Owner

I'm sorry, but it doesn't sound like a problem in the widget. The absence or presence of the icon should not be influencing your test.

@RafaelR7
Copy link
Author

I created a project to try to isolate the problem, when I use an icon in the flushbar the test fails, somehow the icon is interfering with the test.
here's the projetct link: https://github.com/RafaelR7/flushbar-poc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants