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
/* by type: */ await tester.tap(find.byType(RoundedLoadingButton), warnIfMissed: true);
/* by key: */ await tester.tap(find.byKey(const Key("signInButton")), warnIfMissed: true);
But neither of them works at all. I get errors when trying to verify a certain function from a mock instance which is expected to be executed when the button is tapped.
This works with a regular TextButton by the way.
The text was updated successfully, but these errors were encountered:
I found the reason. This widget has its own test, and I analyzed the difference. It turns out the animateOnTap deems the test tap not work if enabled. For testing's sake, I turn it to false when testing:
I have two options when executing a tap:
But neither of them works at all. I get errors when trying to verify a certain function from a mock instance which is expected to be executed when the button is tapped.
This works with a regular TextButton by the way.
The text was updated successfully, but these errors were encountered: