Skip to content

Commit

Permalink
9998 - modified ci_node_index to run only test for specific test
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolutestunna committed Jul 1, 2023
1 parent c2f4168 commit 4f6c11a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/client-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ describe('Judge activity report journey', () => {
};

const cerebralTest = setupTest();

cerebralTest.createdTrialSessions = [];
cerebralTest.createdCases = [];
afterAll(() => {
cerebralTest.closeSocket();
});
Expand Down Expand Up @@ -152,13 +153,10 @@ describe('Judge activity report journey', () => {
// loginAs(cerebralTest, '[email protected]');
// viewJudgeActivityReportResults(cerebralTest, { judgeName: 'All Judges' });

cerebralTest.createdTrialSessions = [];
cerebralTest.createdCases = [];

loginAs(cerebralTest, '[email protected]');
docketClerkCreatesATrialSession(cerebralTest, overrides1);
docketClerkViewsTrialSessionList(cerebralTest);
docketClerkViewsNewTrialSession(cerebralTest);
docketClerkViewsNewTrialSession(cerebralTest, false);
docketClerkCreatesATrialSession(cerebralTest, overrides2);
docketClerkViewsTrialSessionList(cerebralTest);
docketClerkViewsNewTrialSession(cerebralTest);
Expand All @@ -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);
});
});

0 comments on commit 4f6c11a

Please sign in to comment.