From e1ee1f43289f455667b3d2a623c316fb4b7893d2 Mon Sep 17 00:00:00 2001 From: Nechama Krigsman Date: Tue, 26 Nov 2024 14:27:50 -0500 Subject: [PATCH] 10489: display judge name and title on docket description; --- .../status-report-order-description-fields.cy.ts | 9 ++++----- .../sequences/gotoAddCourtIssuedDocketEntrySequence.ts | 2 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cypress/local-only/tests/integration/statusReportOrder/status-report-order-description-fields.cy.ts b/cypress/local-only/tests/integration/statusReportOrder/status-report-order-description-fields.cy.ts index 8063b6b6c20..d07e42b1d12 100644 --- a/cypress/local-only/tests/integration/statusReportOrder/status-report-order-description-fields.cy.ts +++ b/cypress/local-only/tests/integration/statusReportOrder/status-report-order-description-fields.cy.ts @@ -46,17 +46,17 @@ describe('should default status report order descriptions', () => { 'have.value', `. Parties by ${today} shall file a status report. Case is stricken from the current trial session.`, ); - cy.get('#judge-label').click(); + cy.get('[data-testid="judge-select"]').should('have.value', 'Colvin'); cy.get('[data-testid="docket-entry-preview-text"]').should( 'have.text', - `Docket entry preview: Order that jurisdiction is retained by Colvin. Parties by ${today} shall file a status report. Case is stricken from the current trial session.`, + `Docket entry preview: Order that jurisdiction is retained by Judge Colvin. Parties by ${today} shall file a status report. Case is stricken from the current trial session.`, ); }); }); function judgeCreatesAndSavesStatusReportOrder( today: string, - jurisdictionRetain: boolean = false, + jurisdictionRetained: boolean = false, ) { loginAsColvin(); cy.visit(`/case-detail/${docketNumber}`); @@ -66,9 +66,8 @@ function judgeCreatesAndSavesStatusReportOrder( cy.get('[data-testid="order-type-status-report"]').check({ force: true }); cy.get('#status-report-due-date-picker').type(today); - if (jurisdictionRetain) { + if (jurisdictionRetained) { cy.get('#stricken-from-trial-sessions-label').click(); - cy.get( '#jurisdiction-form-group > :nth-child(2) > .usa-radio__label', ).click(); diff --git a/web-client/src/presenter/sequences/gotoAddCourtIssuedDocketEntrySequence.ts b/web-client/src/presenter/sequences/gotoAddCourtIssuedDocketEntrySequence.ts index d115deb4354..20c959566fb 100644 --- a/web-client/src/presenter/sequences/gotoAddCourtIssuedDocketEntrySequence.ts +++ b/web-client/src/presenter/sequences/gotoAddCourtIssuedDocketEntrySequence.ts @@ -1,4 +1,5 @@ import { clearFormAction } from '../actions/clearFormAction'; +import { computeJudgeNameWithTitleAction } from '@web-client/presenter/actions/computeJudgeNameWithTitleAction'; import { generateCourtIssuedDocumentTitleAction } from '../actions/CourtIssuedDocketEntry/generateCourtIssuedDocumentTitleAction'; import { getCaseAction } from '../actions/getCaseAction'; import { getFilterCurrentJudgeUsersAction } from '../actions/getFilterCurrentJudgeUsersAction'; @@ -28,6 +29,7 @@ export const gotoAddCourtIssuedDocketEntrySequence = setDocketEntryIdAction, setCourtIssuedDocumentInitialDataAction, setDefaultServiceStampAction, + computeJudgeNameWithTitleAction, generateCourtIssuedDocumentTitleAction, setIsEditingDocketEntryAction(false), setupCurrentPageAction('CourtIssuedDocketEntry'),