@@ -281,7 +281,7 @@ describe('Pagination', () => {
281
281
await navigateToSidebarOption ( REPORT_ID ) ;
282
282
283
283
expect ( getReportActions ( ) ) . toHaveLength ( 5 ) ;
284
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 1 ) ;
284
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 2 ) ;
285
285
TestHelper . expectAPICommandToHaveBeenCalledWith ( 'OpenReport' , 0 , { reportID : REPORT_ID } ) ;
286
286
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
287
287
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 0 ) ;
@@ -292,7 +292,7 @@ describe('Pagination', () => {
292
292
scrollToOffset ( 0 ) ;
293
293
await waitForBatchedUpdatesWithAct ( ) ;
294
294
295
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 1 ) ;
295
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 2 ) ;
296
296
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
297
297
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 0 ) ;
298
298
} ) ;
@@ -305,7 +305,7 @@ describe('Pagination', () => {
305
305
await navigateToSidebarOption ( REPORT_ID ) ;
306
306
307
307
expect ( getReportActions ( ) ) . toHaveLength ( CONST . REPORT . MIN_INITIAL_REPORT_ACTION_COUNT ) ;
308
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 1 ) ;
308
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 2 ) ;
309
309
TestHelper . expectAPICommandToHaveBeenCalledWith ( 'OpenReport' , 0 , { reportID : REPORT_ID } ) ;
310
310
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
311
311
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 0 ) ;
@@ -314,7 +314,7 @@ describe('Pagination', () => {
314
314
scrollToOffset ( LIST_CONTENT_SIZE . height ) ;
315
315
await waitForBatchedUpdatesWithAct ( ) ;
316
316
317
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 1 ) ;
317
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 2 ) ;
318
318
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 1 ) ;
319
319
TestHelper . expectAPICommandToHaveBeenCalledWith ( 'GetOlderActions' , 0 , { reportID : REPORT_ID , reportActionID : '4' } ) ;
320
320
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 0 ) ;
@@ -346,7 +346,7 @@ describe('Pagination', () => {
346
346
expect ( getReportActions ( ) ) . toHaveLength ( 10 ) ;
347
347
348
348
// There is 1 extra call here because of the comment linking report.
349
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 3 ) ;
349
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 4 ) ;
350
350
TestHelper . expectAPICommandToHaveBeenCalledWith ( 'OpenReport' , 1 , { reportID : REPORT_ID , reportActionID : '5' } ) ;
351
351
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
352
352
TestHelper . expectAPICommandToHaveBeenCalledWith ( 'GetNewerActions' , 0 , { reportID : REPORT_ID , reportActionID : '5' } ) ;
@@ -357,7 +357,7 @@ describe('Pagination', () => {
357
357
scrollToOffset ( 0 ) ;
358
358
await waitForBatchedUpdatesWithAct ( ) ;
359
359
360
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 3 ) ;
360
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 4 ) ;
361
361
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
362
362
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 1 ) ;
363
363
@@ -372,7 +372,7 @@ describe('Pagination', () => {
372
372
scrollToOffset ( 0 ) ;
373
373
await waitForBatchedUpdatesWithAct ( ) ;
374
374
375
- TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 3 ) ;
375
+ TestHelper . expectAPICommandToHaveBeenCalled ( 'OpenReport' , 4 ) ;
376
376
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetOlderActions' , 0 ) ;
377
377
TestHelper . expectAPICommandToHaveBeenCalled ( 'GetNewerActions' , 1 ) ;
378
378
0 commit comments