wix/Detox

Use React Native's nativeID instead of testID

Offen

#3.724 geöffnet am 21.11.2022

 (3 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (1.942 Forks)batch import
hacktoberfeststatus: acceptedtype: enhancement ⚡️user: good 1st issueuser: looking for contributors

Repository-Metriken

Stars
 (10.558 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Describe your idea

Hi there! We have a platform that uses React Native for both Android and iOS app, and we our switching our current desktop web setup to use React Native for Web (away from Angular). In web and html, the id is king (HTMLElement.id (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)) and is used extensively for both accessibility (unique identifiers) and test automation (being able to easily select elements by unique id). It would be extremely useful to be able to use the same IDs across all 3 apps, and not have to differentiate between needing to use testIDs vs nativeIDs or both. Using nativeIDs is obviously preferable since it equates to html IDs, and is not just code added "for testing", but is used as the unique identifier for both accessibility standards and test automation (including unit tests and QA functional tests). Are there any plans to be able to use nativeIDs with Detox? Thanks so much!

Contributor Guide