@@ -282,7 +282,7 @@ describe('Pagination', () => {
282
282
await navigateToSidebarOption ( REPORT_ID ) ;
283
283
284
284
expect ( getReportActions ( ) ) . toHaveLength ( 5 ) ;
285
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 1 ) ;
285
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 2 ) ;
286
286
TestHelper . expectAPICommandToHaveBeenCalledWith ( 'OpenReport' , 0 , { reportID : REPORT_ID } ) ;
287
287
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
288
288
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 0 ) ;
@@ -293,7 +293,7 @@ describe('Pagination', () => {
293
293
scrollToOffset ( 0 ) ;
294
294
await waitForBatchedUpdatesWithAct ( ) ;
295
295
296
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 1 ) ;
296
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 2 ) ;
297
297
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
298
298
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 0 ) ;
299
299
} ) ;
@@ -306,7 +306,7 @@ describe('Pagination', () => {
306
306
await navigateToSidebarOption ( REPORT_ID ) ;
307
307
308
308
expect ( getReportActions ( ) ) . toHaveLength ( CONST . REPORT . MIN_INITIAL_REPORT_ACTION_COUNT ) ;
309
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 1 ) ;
309
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 2 ) ;
310
310
TestHelper . expectAPICommandToHaveBeenCalledWith ( 'OpenReport' , 0 , { reportID : REPORT_ID } ) ;
311
311
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
312
312
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 0 ) ;
@@ -315,7 +315,7 @@ describe('Pagination', () => {
315
315
scrollToOffset ( LIST_CONTENT_SIZE . height ) ;
316
316
await waitForBatchedUpdatesWithAct ( ) ;
317
317
318
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 1 ) ;
318
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 2 ) ;
319
319
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 1 ) ;
320
320
TestHelper . expectAPICommandToHaveBeenCalledWith ( 'GetOlderActions' , 0 , { reportID : REPORT_ID , reportActionID : '4' } ) ;
321
321
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 0 ) ;
@@ -350,7 +350,7 @@ describe('Pagination', () => {
350
350
expect ( getReportActions ( ) ) . toHaveLength ( 10 ) ;
351
351
352
352
// There is 1 extra call here because of the comment linking report.
353
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 3 ) ;
353
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 4 ) ;
354
354
TestHelper . expectAPICommandToHaveBeenCalledWith ( 'OpenReport' , 1 , { reportID : REPORT_ID , reportActionID : '5' } ) ;
355
355
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
356
356
TestHelper . expectAPICommandToHaveBeenCalledWith ( 'GetNewerActions' , 0 , { reportID : REPORT_ID , reportActionID : '5' } ) ;
@@ -361,7 +361,7 @@ describe('Pagination', () => {
361
361
scrollToOffset ( 0 ) ;
362
362
await waitForBatchedUpdatesWithAct ( ) ;
363
363
364
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 3 ) ;
364
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 4 ) ;
365
365
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
366
366
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 1 ) ;
367
367
@@ -376,7 +376,7 @@ describe('Pagination', () => {
376
376
scrollToOffset ( 0 ) ;
377
377
await waitForBatchedUpdatesWithAct ( ) ;
378
378
379
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 3 ) ;
379
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 4 ) ;
380
380
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
381
381
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 1 ) ;
382
382
0 commit comments