diff --git a/web-client/src/presenter/computeds/pendingReportListHelper.test.ts b/web-client/src/presenter/computeds/pendingReportListHelper.test.ts index a0f301adf5b..6590c277515 100644 --- a/web-client/src/presenter/computeds/pendingReportListHelper.test.ts +++ b/web-client/src/presenter/computeds/pendingReportListHelper.test.ts @@ -9,7 +9,7 @@ describe('pendingReportListHelper', () => { applicationContext, ); - it('should display load more button if more results are to be loaded', () => { + it('should set showLoadMore to true when there are additional results to load', () => { const mockState = { pendingReports: { hasPendingItemsResults: true, @@ -26,7 +26,7 @@ describe('pendingReportListHelper', () => { expect(showLoadMore).toBe(true); }); - it('should hide the load more button if more results are to be loaded', () => { + it('should set showLoadMore to false when there are no additional results to load', () => { const mockState = { pendingReports: { hasPendingItemsResults: true, diff --git a/web-client/src/presenter/sequences/Pending/setPendingReportSelectedJudgeSequence.ts b/web-client/src/presenter/sequences/Pending/setPendingReportSelectedJudgeSequence.ts index 08a21738163..782bbff7405 100644 --- a/web-client/src/presenter/sequences/Pending/setPendingReportSelectedJudgeSequence.ts +++ b/web-client/src/presenter/sequences/Pending/setPendingReportSelectedJudgeSequence.ts @@ -1,3 +1,4 @@ +import { clearPendingReportsAction } from '@web-client/presenter/actions/PendingItems/clearPendingReportsAction'; import { fetchPendingItemsAction } from '../../actions/PendingItems/fetchPendingItemsAction'; import { isJudgeSelectedAction } from '../../actions/PendingItems/isJudgeSelectedAction'; import { setPendingItemsAction } from '../../actions/PendingItems/setPendingItemsAction'; @@ -8,7 +9,7 @@ export const setPendingReportSelectedJudgeSequence = [ setPendingReportSelectedJudgeAction, isJudgeSelectedAction, { - no: [], + no: [clearPendingReportsAction], yes: [ showProgressSequenceDecorator([ fetchPendingItemsAction,