Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10489: Status Order Report Enhancements #5600

Open
wants to merge 16 commits into
base: staging
Choose a base branch
from

Conversation

nechama-krigsman
Copy link
Contributor

No description provided.

@TomElliottFlexion TomElliottFlexion marked this pull request as ready for review December 11, 2024 18:03
…her than unused signedByUserId; updated cypress integration test to check for chambers user edge case
Comment on lines 139 to 141
judgeFullName: 'John O. Colvin',
name: 'Colvin',
userId: '4497d22-0874-4c5e-ac98-a843d1472baf',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and below, can we get this data from the judgeColvin user in mockUsers.ts?

documentMetadata.eventCode = 'OJR';
}

if (['O', 'NOT', 'OJR'].includes(documentMetadata.eventCode)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be worth pulling these event codes out into a self-documenting constant like eventCodesThatAllowFreeText? (There is probably a better name, but you get the idea!)

draftOrderState: {},
dueDate: '2024-11-05',
eventCode: 'O',
orderType: 'statusReport',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use constants when possible in this file? E.g., here: STATUS_REPORT_ORDER_OPTIONS.orderTypeOptions.statusReport

Copy link
Contributor

@Mwindo Mwindo Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anywhere we have 'statusReport', 'statusReportStipulatedDecision', 'retained', or 'restoredToGeneralDocket', we should be able to use the STATUS_REPORT_ORDER_OPTIONS object.

cy.get('#tab-drafts').click();
getLastDraftOrderElementFromDrafts().click();
cy.get('[data-testid="add-court-issued-docket-entry-button"]').click();
cy.get('.select-react-element__control').should('have.text', 'Order');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try avoiding third-party library selectors. I think we can just do #document-type here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing anyplace we use this selector below.

Copy link
Contributor

@Mwindo Mwindo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a few comments upon which my approval is contingent, but generally looks good! Thanks @nechama-krigsman and @btejha!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants