Maestro (UI) Tests asserting markers #147
cwsiteplan
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
|
one limitation i found now, is that we cannot assert on specific content of the marker still. e.g. my marker has a label underneath - we can use a accessiblity id of |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Good to know, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
we're using Maestro to for UI testing and I wanted to assert on map markers.
Usually we'd set
on the UI element to be able to assert on it.
Sadly that does not work as the markers are rendered (shifted) using .graphicsLayer {} modifier and I assume that therefore they are not in the view hierarchy as they are "off screen".
To overcome that I now added a
MarkerAccessibilityOverlaythat renders simple invisible Boxes for each marker and layouts them above the visible markers.In order to not impact production with that the whole overlay is only added when we're running UI tests (using an Intent flag to know if it's a UI test run)
Happy to share more if someone is interested.
Beta Was this translation helpful? Give feedback.
All reactions