Skip to content

[e2e] Use real textInput channels and http bindings instead of mocks #51885

@nturgut

Description

@nturgut

E2EWidgetsFlutterBinding is for now inherits mock text chanllel and http bindings from TestWidgetsFlutterBinding.

https://github.com/flutter/flutter/blob/master/packages/flutter_test/lib/src/binding.dart#L262

This issue is not blocking to web integration tests since test authors can use these 2 lines to clear the mocks:
SystemChannels.textInput.setMockMethodCallHandler(null);
HttpOverrides.global = MyHttpOverrides();

On the other hand these changes are good to have before we enable e2e to a wider range of tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our testsf: integration_testThe flutter/packages/integration_test pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions