You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use detox to test a screen which contains an react-native-date-picker as modal.
The problem is that no testID, accessibilyLabel or something is provided in the modal version.
I tried it with the inline picker and was able to swipe the picker but i can not get the picker in the modal.
I tried to analyze the structure with xCode hierarchical debug, but doesn't matter if i try to select by type "DatePicker", _UIDatePickerView or i even tried to select by "UIPickerColumnView", i can not make the scroll work.
In the repo there is just a example how to test if the picker is visible, not to change the date.
This discussion was converted from issue #641 on April 19, 2023 22:03.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I try to use detox to test a screen which contains an react-native-date-picker as modal.
The problem is that no testID, accessibilyLabel or something is provided in the modal version.
I tried it with the inline picker and was able to swipe the picker but i can not get the picker in the modal.
I tried to analyze the structure with xCode hierarchical debug, but doesn't matter if i try to select by type "DatePicker", _UIDatePickerView or i even tried to select by "UIPickerColumnView", i can not make the scroll work.
In the repo there is just a example how to test if the picker is visible, not to change the date.
Is there a way how to archive this?
Beta Was this translation helpful? Give feedback.
All reactions