[go: nahoru, domu]

Skip to content
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

Marker/Info Window Test Tags #201

Open
anqus opened this issue Sep 18, 2022 · 4 comments
Open

Marker/Info Window Test Tags #201

anqus opened this issue Sep 18, 2022 · 4 comments
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@anqus
Copy link
anqus commented Sep 18, 2022

I can't find a way to tap on map markers or their info windows as part of instrumentation UI tests. With other components in Compose, it's possible to find nodes during testing using testTags or contentDescriptions.

It would be useful to add these to markers or their modifiers to help with testing. Also keen to hear if there's another way of doing this!

@anqus anqus added triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Sep 18, 2022
@stale
Copy link
stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

@stale stale bot added the stale label Jun 18, 2023
@anqus
Copy link
Author
anqus commented Jun 18, 2023

bump

@kikoso kikoso added priority: p3 Desirable enhancement or fix. May not be included in next release. and removed triage me I really want to be triaged. labels Jul 10, 2023
@stale stale bot removed stale labels Jul 10, 2023
@gerardoeg
Copy link

Be able to click a marker to show Markers info in order to validate it might be helpful for testing in compose, I tried with tag parameter but any node is being created with the passed tag in MarkerInfoWindowContent:

not working example:

MarkerInfoWindowContent(
        state = rememberMarkerState(position = location),
        tag = ID_TRACKING_MAP_MARKER_TAG
    ) { ... }

Output of the following:
this.composeTestRule.onRoot(true).printToLog("trackingMapAgentScreenMap_MarkersInfoTest")

is (see how any node has the passed tag):

printToLog:
Printing with useUnmergedTree = 'true'
Node #1 at (l=0.0, t=290.0, r=1080.0, b=2274.0)px
 |-Node #2 at (l=0.0, t=290.0, r=1080.0, b=2274.0)px
   MergeDescendants = 'true'

@CallumNZ
Copy link

I tried using MarkerComposable with the testTag modifier, but it doesn't work either 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

4 participants