Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow adb to interact with the app during flutter integration tests #107934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HelioStrike opened this issue Jul 19, 2022 · 3 comments · Fixed by #108430
Closed

Allow adb to interact with the app during flutter integration tests #107934

HelioStrike opened this issue Jul 19, 2022 · 3 comments · Fixed by #108430
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter customer: money (g3) f: integration_test The flutter/packages/integration_test plugin P3 Issues that are less important to the Flutter project platform-android Android applications specifically r: fixed Issue is closed as already fixed in a newer version tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@HelioStrike
Copy link
Contributor

HelioStrike commented Jul 19, 2022

Use case

We want to test platform views (including webviews) in our flutter integrations tests. Flutter integration tests currently don't support this. To workaround this, we'd like to use adb to interact with the app. For adb to be able to interact with the app during the test, we need to set pointerEventSource to TestBindingEventSource.test.

Unfortunately, flutter_test doesn't seem to support setting pointerEventSource yet... I think we can create a setter for it, or make withPointerEventSource. Thanks!

@HelioStrike HelioStrike changed the title Allow flutter integration tests to modify pointerEventSource Allow adb to interact with the app during flutter integration tests Jul 19, 2022
@maheshj01 maheshj01 added the in triage Presently being triaged by the triage team label Jul 20, 2022
@maheshj01
Copy link
Member

Hi @HelioStrike, Thanks for filing the issue. If I understand it right this is an android only feature?

@maheshj01 maheshj01 added c: new feature Nothing broken; request for a new capability tool Affects the "flutter" command-line tool. See also t: labels. c: proposal A detailed proposal for a change to Flutter f: integration_test The flutter/packages/integration_test plugin platform-android Android applications specifically and removed in triage Presently being triaged by the triage team labels Jul 20, 2022
@HelioStrike
Copy link
Contributor Author

@maheshmnj Hey Mahesh! Yup, our usecase is android only for now.

@GaryQian GaryQian added the P3 Issues that are less important to the Flutter project label Jul 26, 2022
@maheshj01 maheshj01 added the r: fixed Issue is closed as already fixed in a newer version label Aug 8, 2022
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter customer: money (g3) f: integration_test The flutter/packages/integration_test plugin P3 Issues that are less important to the Flutter project platform-android Android applications specifically r: fixed Issue is closed as already fixed in a newer version tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants