Running e2e test via patrol for a flutter written app.
Exception has occurred. _AssertionError ('package:flutter/src/foundation/binding.dart': Failed assertion: line 149 pos 12: '_debugInitializedType == null': is not true.)
Running e2e test via patrol for a flutter written app.
Exception has occurred. _AssertionError ('package:flutter/src/foundation/binding.dart': Failed assertion: line 149 pos 12: '_debugInitializedType == null': is not true.)
Please remove the call to IntegrationTestWidgetsFlutterBinding.ensureInitialized()
. Patrol has its own binding and you mustn't interfere with it.
EDIT How are you running your tests? I'm pretty sure you're using flutter test integration_test
, which does not work. You must run tests with Patrol CLI.
https://patrol.leancode.co
to learn how to use Patrol.