Flutter, Google's open-source UI toolkit, has gained immense popularity for building natively compiled applications for mobile, web, desktop, and embedded devices from a single codebase. With its versatility, developers have embraced Flutter for creating dynamic and responsive user interfaces. However, when it comes to test automation, Flutter apps require a unique approach due to their underlying architecture.
“It’s no use! I can’t run an end to end test with Flutter’s integration tests”, exclaimed one of our customers about 9 months ago. I asked what the problem was and they explained that they were using Google Authentication for logging in and used the google_sign_in package for and it wasn’t possible use Flutter’s integration tests to interact with the login screens.