-
Notifications
You must be signed in to change notification settings - Fork 47
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
base: staging
Are you sure you want to change the base?
Conversation
…ventCode to OJR when stricken from trial and jurisdiction is retained;
…her than unused signedByUserId; updated cypress integration test to check for chambers user edge case
judgeFullName: 'John O. Colvin', | ||
name: 'Colvin', | ||
userId: '4497d22-0874-4c5e-ac98-a843d1472baf', |
There was a problem hiding this comment.
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)) { |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
No description provided.