akveo / react-native-ui-kitten

:boom: React Native UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/react-native-ui-kitten/
MIT License
10.27k stars 951 forks source link

add testID on Calendar #1065

Closed jbtheard closed 4 years ago

jbtheard commented 4 years ago

💬 Question

Is there any way we can/could access navigation elements such as CalendarMonthHeader via their testID? My end to end tests require navigation before date selection. Note that adding testID to the dayCell themselves is OK with the renderCell method.

I guess the question/suggestion could be extended to most of the components regarding a default testID...

UI Kitten and Eva version

Package Version
@eva-design/eva 2.0.0-alpha.1
@ui-kitten/components 5.0.0-alpha.1
artyorsh commented 4 years ago

Yes, there is, but it depends on testing library you use. We didn't add testID's, and internally use react-native-testing-library query api

moxspoy commented 3 years ago

we can test this library using Detox (our E2E testing library)