@@ -82,23 +82,31 @@ beforeEach(() => {
82
82
} ) ;
83
83
84
84
function ReportActionsListWrapper ( ) {
85
+ const reportActions = ReportTestUtils . getMockedSortedReportActions ( 500 ) ;
86
+ const lastVisibleActionCreated = reportActions [ 0 ] . created ;
87
+ const report = {
88
+ ...LHNTestUtilsModule . getFakeReport ( ) ,
89
+ lastVisibleActionCreated,
90
+ lastReadTime : lastVisibleActionCreated ,
91
+ } ;
92
+
85
93
return (
86
94
< ComposeProviders components = { [ OnyxProvider , LocaleContextProvider , WindowDimensionsProvider , ReportAttachmentsProvider ] } >
87
95
< ReactionListContext . Provider value = { mockRef } >
88
96
< ActionListContext . Provider value = { mockRef } >
89
97
< ReportActionsList
90
98
parentReportAction = { createRandomReportAction ( 1 ) }
91
99
parentReportActionForTransactionThread = { undefined }
92
- sortedReportActions = { ReportTestUtils . getMockedSortedReportActions ( 500 ) }
93
- report = { LHNTestUtilsModule . getFakeReport ( ) }
100
+ sortedReportActions = { reportActions }
101
+ report = { report }
94
102
onLayout = { mockOnLayout }
95
103
onScroll = { mockOnScroll }
96
104
onContentSizeChange = { ( ) => { } }
97
105
listID = { 1 }
98
106
loadOlderChats = { mockLoadChats }
99
107
loadNewerChats = { mockLoadChats }
100
108
transactionThreadReport = { LHNTestUtilsModule . getFakeReport ( ) }
101
- reportActions = { ReportTestUtils . getMockedSortedReportActions ( 500 ) }
109
+ reportActions = { reportActions }
102
110
/>
103
111
</ ActionListContext . Provider >
104
112
</ ReactionListContext . Provider >
0 commit comments