Skip to content
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

feat(timeline): add testId to timeline #2368

Merged
merged 2 commits into from
Dec 11, 2023
Merged

Conversation

yakirza17
Copy link
Contributor

No description provided.

@yakirza17 yakirza17 marked this pull request as ready for review December 11, 2023 07:55
@@ -142,7 +144,7 @@ const TimelineList = (props: TimelineListProps) => {

return (
<>
<Timeline {..._timelineProps}/>
<Timeline {..._timelineProps} testID={testID}/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be better to pass the testID to the Timeline here as well (i.e. ${testID}.timeline)? If the user uses the Timeline component without the TimelineList they will pass it directly...

@Inbal-Tish
Copy link
Collaborator

@yakirza17 Why did you remove the change in TimelineList?

@yakirza17
Copy link
Contributor Author

@Inbal-Tish It will passed as part of _timelineProps

@Inbal-Tish
Copy link
Collaborator

@Inbal-Tish It will passed as part of _timelineProps

You only need it on the Timeline component? You don't need another testID on the TimelineList component?

@yakirza17
Copy link
Contributor Author

@Inbal-Tish no, the playable part is the scrollView inside the timeline, and the calendar component

@Inbal-Tish Inbal-Tish merged commit fbbdbba into master Dec 11, 2023
1 check passed
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.

None yet

2 participants