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

Using accessibilityIdentifier for UITests #2107

Open
jamesormond opened this issue Jan 31, 2024 · 4 comments
Open

Using accessibilityIdentifier for UITests #2107

jamesormond opened this issue Jan 31, 2024 · 4 comments
Labels
bug 🪲 Something is broken!

Comments

@jamesormond
Copy link

Environment

  • Xcode version: 15.2
  • iOS version: 17.0.1
  • Devices affected:
  • Maps SDK Version: 10.16.0

Observed behavior and steps to reproduce

We are writing Xcode UI Tests for our app. Our test case requires that we tap a marker on the map, which would then launch another feature. In UI Tests, UI elements are accessed via their accessibilityIdentifier. However, we are not able to set an accessibilityIdentifier for the MapBox marker. How can we accomplish this task? Is there a way to set the accessibilityIdentifier, or is there another workaround we must do?

Expected behavior

N/A

Notes / preliminary analysis

N/A

Additional links and references

N/A

@jamesormond jamesormond added the bug 🪲 Something is broken! label Jan 31, 2024
@jamesormond jamesormond changed the title Using accessiibilityIdentifier for UITests Using accessibilityIdentifier for UITests Jan 31, 2024
@OdNairy
Copy link
Contributor

OdNairy commented Feb 1, 2024

Hey @jamesormond
What kind of marker we are talking about? Is it a ViewAnnotation or any other kind of Annotations?

@jamesormond
Copy link
Author

We are looking at point annotations and features

@jamesormond
Copy link
Author

@OdNairy just following up on this thread. What is your suggestion?

@OdNairy
Copy link
Contributor

OdNairy commented Feb 27, 2024

@jamesormond most of the elements on the MapView are rendered with a Metal as part of the single CAMetalLayer. It is not possible to accessibilityIdentifier for such elements, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something is broken!
Projects
None yet
Development

No branches or pull requests

2 participants