Skip to content

Commit

Permalink
9998 - reinstate ci node index; add logs for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolutestunna committed Jul 1, 2023
1 parent 4f6c11a commit 7c4485a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/client-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe('Judge activity report journey', () => {
docketClerkViewsNewTrialSession(cerebralTest, false);
docketClerkCreatesATrialSession(cerebralTest, overrides2);
docketClerkViewsTrialSessionList(cerebralTest);
docketClerkViewsNewTrialSession(cerebralTest);
docketClerkViewsNewTrialSession(cerebralTest, false);

loginAs(cerebralTest, '[email protected]');
it('create case 1', async () => {
Expand All @@ -174,6 +174,17 @@ describe('Judge activity report journey', () => {
docketClerkAddsCaseToHearing(cerebralTest, 'Test hearing note one.');
docketClerkViewsNewTrialSession(cerebralTest, true, 'Test hearing note one.');

loginAs(cerebralTest, '[email protected]');
petitionsClerkViewsNewTrialSession(cerebralTest);
markAllCasesAsQCed(cerebralTest, () => [cerebralTest.docketNumber]);

console.log(
'HERE TO SEE IF DOCKET CLERK is opened',
cerebralTest.lastCreatedTrialSessionId,
);
loginAs(cerebralTest, '[email protected]');
docketClerkViewsTrialSessionList(cerebralTest);

it('should increase the trial session count for all judges', () => {
console.log('trialsessions number', cerebralTest.trialSessionsHeldTotal);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export const judgeActivityReportHelper = (
CAV_AND_SUBMITTED_CASES_PAGE_SIZE,
);

console.log('TRIAL SESSIONS IN HELPER', trialSessionsHeldTotal);

return {
closedCasesTotal,
filteredSubmittedAndCavCasesByJudge,
Expand Down

0 comments on commit 7c4485a

Please sign in to comment.