From 7c4485ad75c9b000ab96e887e18a221eebb11d80 Mon Sep 17 00:00:00 2001 From: Absolutestunna Date: Sat, 1 Jul 2023 19:22:41 -0400 Subject: [PATCH] 9998 - reinstate ci node index; add logs for debugging --- .github/workflows/client-integration.yml | 3 +-- .../journey/docketClerkCreatesATrialSession.ts | 8 ++++++++ .../journey/docketClerkViewsTrialSessionList.ts | 7 +++++++ .../judgeActivityReportJourneyTrialSessions.test.ts | 13 ++++++++++++- .../judgeActivityReportHelper.ts | 2 ++ 5 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.github/workflows/client-integration.yml b/.github/workflows/client-integration.yml index 5c7bfde4f44..80ab7f48c3d 100644 --- a/.github/workflows/client-integration.yml +++ b/.github/workflows/client-integration.yml @@ -11,8 +11,7 @@ jobs: fail-fast: false matrix: ci_node_total: [12] - # ci_node_index: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] - ci_node_index: [9] + ci_node_index: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] env: CI_NODE_TOTAL: ${{ matrix.ci_node_total }} diff --git a/web-client/integration-tests/journey/docketClerkCreatesATrialSession.ts b/web-client/integration-tests/journey/docketClerkCreatesATrialSession.ts index 8c7f7e8761a..641b87dcef7 100644 --- a/web-client/integration-tests/journey/docketClerkCreatesATrialSession.ts +++ b/web-client/integration-tests/journey/docketClerkCreatesATrialSession.ts @@ -188,6 +188,14 @@ export const docketClerkCreatesATrialSession = ( ); expect(lastCreatedTrialSessionId).toBeDefined(); + await cerebralTest.runSequence('gotoTrialSessionDetailSequence', { + trialSessionId: cerebralTest.lastCreatedTrialSessionId, + }); + console.log( + 'trialSession!! JUST AFTER CREATING TRIAL SESSION', + cerebralTest.getState('trialSession'), + ); + cerebralTest.lastCreatedTrialSessionId = lastCreatedTrialSessionId; cerebralTest.trialSessionId = cerebralTest.lastCreatedTrialSessionId; }); diff --git a/web-client/integration-tests/journey/docketClerkViewsTrialSessionList.ts b/web-client/integration-tests/journey/docketClerkViewsTrialSessionList.ts index 8c480767d8d..7e8eca253bb 100644 --- a/web-client/integration-tests/journey/docketClerkViewsTrialSessionList.ts +++ b/web-client/integration-tests/journey/docketClerkViewsTrialSessionList.ts @@ -18,11 +18,18 @@ export const docketClerkViewsTrialSessionList = ( const formatted = runCompute(formattedTrialSessions, { state: cerebralTest.getState(), }); + + console.log('formatted SESSIONS', formatted.formattedSessions); expect(formatted.formattedSessions.length).toBeGreaterThan(0); + console.log( + 'lastCreatedTrialSessionId', + cerebralTest.lastCreatedTrialSessionId, + ); const trialSession = find(formatted.sessionsByTerm, { trialSessionId: cerebralTest.lastCreatedTrialSessionId, }); + console.log('trialSession', trialSession); expect(trialSession).toBeDefined(); diff --git a/web-client/integration-tests/judgeActivityReportJourneyTrialSessions.test.ts b/web-client/integration-tests/judgeActivityReportJourneyTrialSessions.test.ts index 8e14b117e54..d5e07ea68c1 100644 --- a/web-client/integration-tests/judgeActivityReportJourneyTrialSessions.test.ts +++ b/web-client/integration-tests/judgeActivityReportJourneyTrialSessions.test.ts @@ -159,7 +159,7 @@ describe('Judge activity report journey', () => { docketClerkViewsNewTrialSession(cerebralTest, false); docketClerkCreatesATrialSession(cerebralTest, overrides2); docketClerkViewsTrialSessionList(cerebralTest); - docketClerkViewsNewTrialSession(cerebralTest); + docketClerkViewsNewTrialSession(cerebralTest, false); loginAs(cerebralTest, 'petitioner@example.com'); it('create case 1', async () => { @@ -174,6 +174,17 @@ describe('Judge activity report journey', () => { docketClerkAddsCaseToHearing(cerebralTest, 'Test hearing note one.'); docketClerkViewsNewTrialSession(cerebralTest, true, 'Test hearing note one.'); + loginAs(cerebralTest, 'petitionsclerk@example.com'); + petitionsClerkViewsNewTrialSession(cerebralTest); + markAllCasesAsQCed(cerebralTest, () => [cerebralTest.docketNumber]); + + console.log( + 'HERE TO SEE IF DOCKET CLERK is opened', + cerebralTest.lastCreatedTrialSessionId, + ); + loginAs(cerebralTest, 'docketclerk@example.com'); + docketClerkViewsTrialSessionList(cerebralTest); + it('should increase the trial session count for all judges', () => { console.log('trialsessions number', cerebralTest.trialSessionsHeldTotal); diff --git a/web-client/src/presenter/computeds/JudgeActivityReport/judgeActivityReportHelper.ts b/web-client/src/presenter/computeds/JudgeActivityReport/judgeActivityReportHelper.ts index be833b34599..9c43108b04f 100644 --- a/web-client/src/presenter/computeds/JudgeActivityReport/judgeActivityReportHelper.ts +++ b/web-client/src/presenter/computeds/JudgeActivityReport/judgeActivityReportHelper.ts @@ -124,6 +124,8 @@ export const judgeActivityReportHelper = ( CAV_AND_SUBMITTED_CASES_PAGE_SIZE, ); + console.log('TRIAL SESSIONS IN HELPER', trialSessionsHeldTotal); + return { closedCasesTotal, filteredSubmittedAndCavCasesByJudge,