-
Notifications
You must be signed in to change notification settings - Fork 115
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
spec.press resulting in error for non Button components #191
Comments
This is happening in my project as well. Tried upgrading cavy to v4.0.0 and cavy-cli v2.0.0. After some internal testing, it appears it may be related to a change in React Native v0.62. Downgrading to RN 0.61, tests run okay. This is true for cavy v4 and v3.x (with appropriate cli). Major overhaul of Looks the removal of
|
@PolarisWT that's really helpful, thanks! |
Thanks for delving into this @PolarisWT, really useful findings! @fuzzpedal - did you find that you were able to swap to using the Looks like we have a couple of things it would be good to address Cavy-side:
I'll add these to the public backlog! Note that if there isn't a Cavy helper function that calls the exact prop you need, you can always use |
^^^ Great! Got the Referenced for anyone else running across this issue as |
@AbigailMcP How can you work on the checkBox component? i try using hook and wrap but it got the error: also, how can we use cavy with the bottom tabs created like this |
Hi @Duy1999 ! Sorry I haven't been able to look into this sooner. Checkboxes I assume you're getting the If so, you can use cavy's Let me know how you get on with this. In the future, it might be nice for Cavy to support checking checkboxes, as they're a common form element! I'll add this to Cavy's product backlog for consideration :) Stack Navigator Paging @jalada in case he has any ideas! |
Re: Stack Navigator, a custom component was my first thought as well. |
spec.press
is working forButton
components but I get the following error forTouchableHighlight
andTouchableOpacity
components:undefined is not an object (evaluating 'component.props.onPress')
I'm using expo and typescript if that makes a difference.
The text was updated successfully, but these errors were encountered: