elbeicktalat / flutter_auth_buttons

Auth Buttons is a flutter widget library, include buttons for authenticating with the most popular social networks.
https://pub.dev/packages/auth_buttons
BSD 3-Clause "New" or "Revised" License
32 stars 32 forks source link

"6 widgets with key [<'GoogleAuthButton'>]" - testing finder error #28

Closed idotalmor closed 2 years ago

idotalmor commented 2 years ago

Hi! This library builds the auth buttons by composing multiple widgets with the same key, which makes it impossible to grab the widgets by its key for testing purposes.

please add support for testing in your roadmap. also, I think multiple keys can lead to rendering issues with the flutter engine.

elbeicktalat commented 2 years ago

Hi there, You are right and actually I'm working for better testing and debugging support.

elbeicktalat commented 2 years ago

The all authentication buttons are covered by widget tests, so I think you don't need to test nothing. if you have a critical need try find.byType in your test.