mapbox / mapbox/mapbox-maps-ios
Using accessibilityIdentifier for UITests
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
## 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by tracing how map markers are exposed to iOS accessibility and Xcode UI Tests, then verify whether a marker can be addressed by accessibilityIdentifier or whether a documented workaround is needed. Done means providing a working approach for tapping a marker in the described UI test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- accessibility, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100