-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to write UI tests that interact with native UI elements #36024
Comments
Hi @felangel , it seems a long time no answer here. Did you have any solution for this yet? I'm in the same situation here. Thanks |
@hainguyen168 unfortunately, I don't think we ever came up with a solution :( |
This would need to be done via espresso/XCUITest. Leaving open to track adding such a test to the plugin, both for improved test coverage and to provide an example of this kind of test for apps using the plugin. |
Are there any updates about this? |
I've tried tapping on the marker via
|
Flutter test events are injected at the Flutter layer, so have no effect on native views. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Patrol might help you with this. It can interact with platform views (i.e. not Flutter widgets). |
Following this. Has anyone yet managed to get any kind of test that loads the map and able to interact with it, like clicking on a marker |
For reference until there's actual documentation on this, some examples of hybrid UI tests in flutter/packages: |
This comment was marked as off-topic.
This comment was marked as off-topic.
You could try using Patrol to interact with non-native UI such as Google Maps markers and info windows. |
Since markers aren't widgets, what is the recommended way to write a widget test which taps a map marker and ensures that the onTap is executed? I didn't see any marker onTap tests in the google maps plugin tests 馃檨
Thanks!
The text was updated successfully, but these errors were encountered: