-
Notifications
You must be signed in to change notification settings - Fork 734
Carousel - render tests - first tests #1689
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
Conversation
src/components/carousel/index.tsx
Outdated
animated={animated} | ||
style={[{marginBottom}, containerStyle]} | ||
onLayout={this.onContainerLayout} | ||
testID={testID} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we talked about in the meeting, we usually pass the testID to the main component and not to the wrapping view. consider passing the testID directly to the scrollView.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'll do that I won't be able to test anything on the container. I don't think it's the right call in this case...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you want to test on the container? I saw you don't have any test for it at the moment..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know what? Since {...others} is passed to the ScrollView, I'll leave the testID there so I won't break anyone. Thanks
…a/Carousel_component_tests
…a/Carousel_component_tests
Description
Carousel - render tests - first tests.
Changelog
Carousel - render tests - first tests.