From 4f6c11ae270e30c909635ed2c559ba4ff2609a61 Mon Sep 17 00:00:00 2001 From: Absolutestunna Date: Sat, 1 Jul 2023 18:45:48 -0400 Subject: [PATCH] 9998 - modified ci_node_index to run only test for specific test --- .github/workflows/client-integration.yml | 4 +++- ...eActivityReportJourneyTrialSessions.test.ts | 18 +++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/client-integration.yml b/.github/workflows/client-integration.yml index 9deec84c728..5c7bfde4f44 100644 --- a/.github/workflows/client-integration.yml +++ b/.github/workflows/client-integration.yml @@ -11,7 +11,9 @@ 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: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] + ci_node_index: [9] + env: CI_NODE_TOTAL: ${{ matrix.ci_node_total }} CI_NODE_INDEX: ${{ matrix.ci_node_index }} diff --git a/web-client/integration-tests/judgeActivityReportJourneyTrialSessions.test.ts b/web-client/integration-tests/judgeActivityReportJourneyTrialSessions.test.ts index 0575ca1e8fa..8e14b117e54 100644 --- a/web-client/integration-tests/judgeActivityReportJourneyTrialSessions.test.ts +++ b/web-client/integration-tests/judgeActivityReportJourneyTrialSessions.test.ts @@ -50,7 +50,8 @@ describe('Judge activity report journey', () => { }; const cerebralTest = setupTest(); - + cerebralTest.createdTrialSessions = []; + cerebralTest.createdCases = []; afterAll(() => { cerebralTest.closeSocket(); }); @@ -152,13 +153,10 @@ describe('Judge activity report journey', () => { // loginAs(cerebralTest, 'judgecolvin@example.com'); // viewJudgeActivityReportResults(cerebralTest, { judgeName: 'All Judges' }); - cerebralTest.createdTrialSessions = []; - cerebralTest.createdCases = []; - loginAs(cerebralTest, 'docketclerk@example.com'); docketClerkCreatesATrialSession(cerebralTest, overrides1); docketClerkViewsTrialSessionList(cerebralTest); - docketClerkViewsNewTrialSession(cerebralTest); + docketClerkViewsNewTrialSession(cerebralTest, false); docketClerkCreatesATrialSession(cerebralTest, overrides2); docketClerkViewsTrialSessionList(cerebralTest); docketClerkViewsNewTrialSession(cerebralTest); @@ -176,8 +174,10 @@ describe('Judge activity report journey', () => { docketClerkAddsCaseToHearing(cerebralTest, 'Test hearing note one.'); docketClerkViewsNewTrialSession(cerebralTest, true, 'Test hearing note one.'); - // it('should increase the trial session count for all judges', () => { - // const trialSessionsHeldAfter = cerebralTest.trialSessionsHeldTotal; - // expect(trialSessionsHeldAfter).toEqual(trialSessionsHeldBefore + 2); - // }); + it('should increase the trial session count for all judges', () => { + console.log('trialsessions number', cerebralTest.trialSessionsHeldTotal); + + // const trialSessionsHeldAfter = cerebralTest.trialSessionsHeldTotal; + // expect(trialSessionsHeldAfter).toEqual(trialSessionsHeldBefore + 2); + }); });