Skip to content

Commit

Permalink
Merge remote-tracking branch 'USTC/staging' into 10293-design-debt
Browse files Browse the repository at this point in the history
  • Loading branch information
akuny committed Dec 27, 2024
2 parents 7bba055 + 40575eb commit f0901f4
Show file tree
Hide file tree
Showing 59 changed files with 3,475 additions and 3,531 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1
orbs:
git-shallow-clone: guitarrapc/git-shallow-clone@2.8.0

efcms-docker-image: &efcms-docker-image $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/ef-cms-us-east-1:4.3.21.1
efcms-docker-image: &efcms-docker-image $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/ef-cms-us-east-1:4.3.24

parameters:
run_build_and_deploy:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ RUN apt-get install -y build-essential
RUN apt-get install -y libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.6.zip" -o "awscliv2.zip" && \
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.20.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm -rf awscliv2.zip

RUN wget -q -O terraform.zip https://releases.hashicorp.com/terraform/1.9.8/terraform_1.9.8_linux_amd64.zip && \
RUN wget -q -O terraform.zip https://releases.hashicorp.com/terraform/1.10.3/terraform_1.10.3_linux_amd64.zip && \
unzip -o terraform.zip terraform && \
rm terraform.zip && \
cp terraform /usr/local/bin/
Expand Down
11 changes: 5 additions & 6 deletions aws/lambdas/RotateInfoIndices/src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const { DateTime } = require('luxon');
const { defaultProvider } = require('@aws-sdk/credential-provider-node');
const { HttpRequest } = require('@aws-sdk/protocol-http');
const { NodeHttpHandler } = require('@aws-sdk/node-http-handler');
const { HttpRequest } = require('@smithy/protocol-http');
const { NodeHttpHandler } = require('@smithy/node-http-handler');
const { Sha256 } = require('@aws-crypto/sha256-browser');
const { SignatureV4 } = require('@aws-sdk/signature-v4');
const { SignatureV4 } = require('@smithy/signature-v4');

const EXPIRATION = process.env.expiration; // days

Expand Down Expand Up @@ -31,9 +31,8 @@ exports.handler = async (input, context) => {
}
} else {
// snapshot does not exist, let's create one
const { responseBody, statusCode } = await exports.snapshotForIndexName(
ei,
);
const { responseBody, statusCode } =
await exports.snapshotForIndexName(ei);
responses.createSnapshot.push({
indexName: ei,
responseBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ import { unchecksOrdersAndNoticesBoxesInCase } from '../../../support/pages/unch

describe('Petition clerk creates a paper filing', function () {
describe('Create and submit a paper petition', () => {
beforeEach(() => {
cy.window().then(win => {
cy.stub(win, 'open').as('windowOpen');
});
});
it('should create a paper petition', () => {
navigateToDocumentQC('petitionsclerk');

Expand All @@ -43,23 +48,17 @@ describe('Petition clerk creates a paper filing', function () {
it('should display attachment links in the attachment section', () => {
cy.get('[data-testid="petitionFileButton"]').should('be.visible');
cy.get('[data-testid="petitionFileButton"]').click();
cy.get('[data-testid="modal-dialog-header"]').should('be.visible');
cy.get('[data-testid="close-modal-button"]').click();
cy.get('[data-testid="stinFileDisplay"]').should('be.visible');
cy.get('[data-testid="stinFileDisplay"]').should('not.be.enabled');

cy.get('[data-testid="requestForPlaceOfTrialFileButton"]').should(
'be.visible',
);
cy.get('[data-testid="requestForPlaceOfTrialFileButton"]').click();
cy.get('[data-testid="modal-dialog-header"]').should('be.visible');
cy.get('[data-testid="close-modal-button"]').click();
cy.get('[data-testid="attachmentToPetitionFileButton"]').should(
'be.visible',
);
cy.get('[data-testid="attachmentToPetitionFileButton"]').click();
cy.get('[data-testid="modal-dialog-header"]').should('be.visible');
cy.get('[data-testid="close-modal-button"]').click();
});

it('should display Orders/Notices Automatically Created notification', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
import {
FORMATS,
formatNow,
} from '../../../../../shared/src/business/utilities/DateHandler';
import {
docketNumber,
getLastDraftOrderElementFromDrafts,
} from '../../../support/statusReportOrder';
import {
loginAsColvin,
loginAsColvinChambers,
loginAsDocketClerk,
} from '../../../../helpers/authentication/login-as-helpers';
import { logout } from '../../../../helpers/authentication/logout';

describe('should default status report order descriptions', () => {
const today = formatNow(FORMATS.MMDDYYYY);
it('should display default description when document type is an Order', () => {
judgeOrChambersCreatesStatusReportOrder(today);
loginAsDocketClerk();
cy.visit(`/case-detail/${docketNumber}`);
cy.get('#tab-drafts').click();
getLastDraftOrderElementFromDrafts().click();
cy.get('[data-testid="add-court-issued-docket-entry-button"]').click();
cy.get('[data-testid="court-issued-document-type-search"]').should(
'have.text',
'Order',
);
cy.get('[data-testid="document-description-input"]').should(
'have.value',
`Order parties by ${today} shall file a status report.`,
);
cy.get('[data-testid="docket-entry-preview-text"]').should(
'have.text',
`Docket entry preview: Order parties by ${today} shall file a status report.`,
);
});

it('should set event code to OJR when case is stricken from trial session and jurisdiction is retained and display default description', () => {
judgeOrChambersCreatesStatusReportOrder(today, true);
loginAsDocketClerk();
cy.visit(`/case-detail/${docketNumber}`);
cy.get('#tab-drafts').click();
getLastDraftOrderElementFromDrafts().click();
cy.get('[data-testid="add-court-issued-docket-entry-button"]').click();
cy.get('[data-testid="court-issued-document-type-search"]').should(
'have.text',
'Order that jurisdiction is retained',
);
cy.get('[data-testid="document-description-input"]').should(
'have.value',
`. Parties by ${today} shall file a status report. Case is stricken from the current trial session.`,
);
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 Judge Colvin. Parties by ${today} shall file a status report. Case is stricken from the current trial session.`,
);
});

it('should continue to handle OJR and set correct signing judge when status order report is signed by chambers user', () => {
judgeOrChambersCreatesStatusReportOrder(today, true, true);
loginAsDocketClerk();
cy.visit(`/case-detail/${docketNumber}`);
cy.get('#tab-drafts').click();
getLastDraftOrderElementFromDrafts().click();
cy.get('[data-testid="add-court-issued-docket-entry-button"]').click();
cy.get('[data-testid="court-issued-document-type-search"]').should(
'have.text',
'Order that jurisdiction is retained',
);
cy.get('[data-testid="document-description-input"]').should(
'have.value',
`. Parties by ${today} shall file a status report. Case is stricken from the current trial session.`,
);
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 Judge Colvin. Parties by ${today} shall file a status report. Case is stricken from the current trial session.`,
);
});
});

function judgeOrChambersCreatesStatusReportOrder(
today: string,
jurisdictionRetained: boolean = false,
chambersUser: boolean = false,
) {
if (chambersUser) {
loginAsColvinChambers();
} else {
loginAsColvin();
}
cy.visit(`/case-detail/${docketNumber}`);
cy.get('#tab-document-view').click();
cy.contains('Status Report').click();
cy.get('[data-testid="status-report-order-button"]').click();
cy.get('[data-testid="order-type-status-report"]').check({ force: true });
cy.get('#status-report-due-date-picker').type(today);

if (jurisdictionRetained) {
cy.get('#stricken-from-trial-sessions-label').click();
cy.get(
'#jurisdiction-form-group > :nth-child(2) > .usa-radio__label',
).click();
cy.get('#jurisdiction-retained').check();
}
cy.get('[data-testid="save-draft-button"]').click();
cy.get('[data-testid="sign-pdf-canvas"]').click();
cy.get('[data-testid="save-signature-button"]').click();
logout();
}
4 changes: 4 additions & 0 deletions docs/dependency-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ regex search the entire project for `aws = "\d+.\d+.\d+"` and make sure it's to

## Do Not Upgrade

### React and ReactDOM

- cerebral version 5.2.1 and @cerebral/react version 4.2.1 are not compatible with React and ReactDOM version 19. Keep these pinned at version 18 for the time being. See https://github.com/cerebral/cerebral/pull/1441.

### @fortawesome

- fortawesome packages are locked down to pre-6.x.x to maintain consistency of icon styling until there is usability feedback and research that determines we should change them. This includes `@fortawesome/free-solid-svg-icons`, `@fortawesome/free-regular-svg-icons`, and `@fortawesome/fontawesome-svg-core`.
Expand Down
Loading

0 comments on commit f0901f4

Please sign in to comment.