File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export interface EventBlockProps {
2626 renderEvent ?: ( event : PackedEvent ) => JSX . Element ;
2727 format24h ?: boolean ;
2828 styles : { [ key : string ] : ViewStyle | TextStyle } ;
29+ testID ?: string ;
2930}
3031
3132const TEXT_LINE_HEIGHT = 17 ;
@@ -53,7 +54,7 @@ const EventBlock = (props: EventBlockProps) => {
5354 } , [ index , onPress ] ) ;
5455
5556 return (
56- < TouchableOpacity activeOpacity = { 0.9 } onPress = { _onPress } style = { [ styles . event , eventStyle ] } >
57+ < TouchableOpacity testID = { props . testID } activeOpacity = { 0.9 } onPress = { _onPress } style = { [ styles . event , eventStyle ] } >
5758 { renderEvent ? (
5859 renderEvent ( event )
5960 ) : (
Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ const Timeline = (props: TimelineProps) => {
220220 format24h = { format24h }
221221 onPress = { onEventPress }
222222 renderEvent = { renderEvent }
223+ testID = { `${ testID } .event.${ event . id } ` }
223224 />
224225 ) ;
225226 } ) ;
You can’t perform that action at this time.
0 commit comments