Skip to content

Commit 7629792

Browse files
committed
fix: test
1 parent c86b079 commit 7629792

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/ui/PaginationTest.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ describe('Pagination', () => {
281281
await navigateToSidebarOption(REPORT_ID);
282282

283283
expect(getReportActions()).toHaveLength(5);
284-
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 1);
284+
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 2);
285285
TestHelper.expectAPICommandToHaveBeenCalledWith('OpenReport', 0, {reportID: REPORT_ID});
286286
TestHelper.expectAPICommandToHaveBeenCalled('GetOlderActions', 0);
287287
TestHelper.expectAPICommandToHaveBeenCalled('GetNewerActions', 0);
@@ -292,7 +292,7 @@ describe('Pagination', () => {
292292
scrollToOffset(0);
293293
await waitForBatchedUpdatesWithAct();
294294

295-
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 1);
295+
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 2);
296296
TestHelper.expectAPICommandToHaveBeenCalled('GetOlderActions', 0);
297297
TestHelper.expectAPICommandToHaveBeenCalled('GetNewerActions', 0);
298298
});
@@ -305,7 +305,7 @@ describe('Pagination', () => {
305305
await navigateToSidebarOption(REPORT_ID);
306306

307307
expect(getReportActions()).toHaveLength(CONST.REPORT.MIN_INITIAL_REPORT_ACTION_COUNT);
308-
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 1);
308+
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 2);
309309
TestHelper.expectAPICommandToHaveBeenCalledWith('OpenReport', 0, {reportID: REPORT_ID});
310310
TestHelper.expectAPICommandToHaveBeenCalled('GetOlderActions', 0);
311311
TestHelper.expectAPICommandToHaveBeenCalled('GetNewerActions', 0);
@@ -314,7 +314,7 @@ describe('Pagination', () => {
314314
scrollToOffset(LIST_CONTENT_SIZE.height);
315315
await waitForBatchedUpdatesWithAct();
316316

317-
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 1);
317+
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 2);
318318
TestHelper.expectAPICommandToHaveBeenCalled('GetOlderActions', 1);
319319
TestHelper.expectAPICommandToHaveBeenCalledWith('GetOlderActions', 0, {reportID: REPORT_ID, reportActionID: '4'});
320320
TestHelper.expectAPICommandToHaveBeenCalled('GetNewerActions', 0);
@@ -346,7 +346,7 @@ describe('Pagination', () => {
346346
expect(getReportActions()).toHaveLength(10);
347347

348348
// There is 1 extra call here because of the comment linking report.
349-
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 3);
349+
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 4);
350350
TestHelper.expectAPICommandToHaveBeenCalledWith('OpenReport', 1, {reportID: REPORT_ID, reportActionID: '5'});
351351
TestHelper.expectAPICommandToHaveBeenCalled('GetOlderActions', 0);
352352
TestHelper.expectAPICommandToHaveBeenCalledWith('GetNewerActions', 0, {reportID: REPORT_ID, reportActionID: '5'});
@@ -357,7 +357,7 @@ describe('Pagination', () => {
357357
scrollToOffset(0);
358358
await waitForBatchedUpdatesWithAct();
359359

360-
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 3);
360+
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 4);
361361
TestHelper.expectAPICommandToHaveBeenCalled('GetOlderActions', 0);
362362
TestHelper.expectAPICommandToHaveBeenCalled('GetNewerActions', 1);
363363

@@ -372,7 +372,7 @@ describe('Pagination', () => {
372372
scrollToOffset(0);
373373
await waitForBatchedUpdatesWithAct();
374374

375-
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 3);
375+
TestHelper.expectAPICommandToHaveBeenCalled('OpenReport', 4);
376376
TestHelper.expectAPICommandToHaveBeenCalled('GetOlderActions', 0);
377377
TestHelper.expectAPICommandToHaveBeenCalled('GetNewerActions', 1);
378378

0 commit comments

Comments
 (0)