Skip to content

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

Merged
merged 17 commits into from
Dec 1, 2021

Conversation

Inbal-Tish
Copy link
Collaborator

Description

Carousel - render tests - first tests.

Changelog

Carousel - render tests - first tests.

animated={animated}
style={[{marginBottom}, containerStyle]}
onLayout={this.onContainerLayout}
testID={testID}
Copy link
Contributor

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.

Copy link
Collaborator Author

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...

Copy link
Contributor

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..

Copy link
Collaborator Author

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

@Inbal-Tish Inbal-Tish requested a review from lidord-wix December 1, 2021 13:46
@lidord-wix lidord-wix merged commit 083e9b6 into master Dec 1, 2021
@Inbal-Tish Inbal-Tish deleted the infra/Carousel_component_tests branch December 6, 2021 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants