Skip to content

Commit

Permalink
10489: display judge name and title on docket description;
Browse files Browse the repository at this point in the history
  • Loading branch information
nechama-krigsman committed Nov 26, 2024
1 parent 478463a commit e1ee1f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -28,6 +29,7 @@ export const gotoAddCourtIssuedDocketEntrySequence =
setDocketEntryIdAction,
setCourtIssuedDocumentInitialDataAction,
setDefaultServiceStampAction,
computeJudgeNameWithTitleAction,
generateCourtIssuedDocumentTitleAction,
setIsEditingDocketEntryAction(false),
setupCurrentPageAction('CourtIssuedDocketEntry'),
Expand Down

0 comments on commit e1ee1f4

Please sign in to comment.