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

Merge staging into prod #5674

Merged
merged 173 commits into from
Jan 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
70f9666
10434: Wire up new page for trial session planning report;
Nov 22, 2024
a504b1f
10434: Remove unnecessary class;
Nov 22, 2024
8d2799b
10434: WIP display term info;
Nov 25, 2024
1443faa
10489: generate freeText for default docket entry descriptions; set e…
nechama-krigsman Nov 26, 2024
47ed280
10489: fix extra space showing before the period on docket entry desc…
nechama-krigsman Nov 26, 2024
f766dcb
10489: set default judge when eventCode is OJR;
nechama-krigsman Nov 26, 2024
1af5a26
10434: Create header with term and year displaying and print button;
Nov 26, 2024
478463a
10489: add cypress tests;
nechama-krigsman Nov 26, 2024
6d4aaf6
10434: Setup UI to display cities that have not been calendared (TEST…
Nov 26, 2024
e1ee1f4
10489: display judge name and title on docket description;
nechama-krigsman Nov 26, 2024
47ab4f0
Merge branch 'staging' into 10489-story-staging
nechama-krigsman Nov 27, 2024
44a5625
10549- Fix long docket number cut off
btejha Dec 2, 2024
409ab9f
Reverted local changes
btejha Dec 2, 2024
99c34aa
10434: Wire up new GET Http endpoint to get Trial Sessions Pending Re…
nechama-krigsman Dec 2, 2024
e79327d
10434: Append - add properties to state;
nechama-krigsman Dec 2, 2024
ed1a3b0
Merge branch '10434-story' of https://github.com/flexion/ef-cms into …
nechama-krigsman Dec 2, 2024
46e984a
10434: get trial session params from trial session report state; move…
nechama-krigsman Dec 2, 2024
69b7bf8
10434: Close/Clear modal;
nechama-krigsman Dec 2, 2024
1a18f4f
10434: calculate trial cities that were not calendared;
nechama-krigsman Dec 2, 2024
bc34490
10434: Append;
nechama-krigsman Dec 2, 2024
1166279
10434: Format previous terms header labels in helper;
nechama-krigsman Dec 2, 2024
bae2988
10434: Improve typings; Display calendar x icon; Added styling to the…
nechama-krigsman Dec 2, 2024
a6785c0
10434: Add blocked cases count to planning report data;
nechama-krigsman Dec 2, 2024
2ddab4e
10434: Display Blocked Count in table;
nechama-krigsman Dec 2, 2024
288d070
10549:Reverted the font size to its original setting and wrapped the …
btejha Dec 2, 2024
ce2f89d
10549:Classname updated
btejha Dec 3, 2024
b7c4b78
10434: Get count of special cases per city and return that number to …
Dec 3, 2024
8d40107
10434: display special case count on table;
nechama-krigsman Dec 4, 2024
ef1185e
10434: display regular calendar icon;
nechama-krigsman Dec 4, 2024
865d602
10472: PDF Preview in new Tab
JayFlexy Nov 14, 2024
686a2cd
10285:Fix: Wrap text in Filings and Proceedings column in Document View
btejha Dec 4, 2024
f142bde
10434: display zero when no special trial sessions;
nechama-krigsman Dec 4, 2024
18f5c82
Merge branch 'staging' of github.com:ustaxcourt/ef-cms into 10285-des…
btejha Dec 4, 2024
15ba7bb
10285:Fix: Wrap text in Document View
btejha Dec 4, 2024
bb44c92
Merge branch 'staging' of github.com:ustaxcourt/ef-cms into 10285-des…
btejha Dec 4, 2024
0dc376b
Merge branch 'staging' into 10489-story-staging
nechama-krigsman Dec 5, 2024
ac35b12
10434: WIP get lastVisitedDate for trial locations;
nechama-krigsman Dec 5, 2024
0f77805
10434: check correct previous two terms;
nechama-krigsman Dec 5, 2024
3518e47
Merge branch '10434-story' of github.com:flexion/ef-cms into 10434-story
Dec 5, 2024
d298b0a
10434: Get last viewed date for trial session
Dec 5, 2024
7130f15
10434: Fix Import;
Dec 5, 2024
6895f7e
10434: Display hover tooltip with last visited message;
Dec 5, 2024
fdd5733
10434: Only considered Trial Sessions that are calendared;
Dec 5, 2024
e6d2b64
10434: Delete json file;
Dec 5, 2024
537e97e
10434: Fix typescript error in markup;
Dec 6, 2024
856c8c0
10434: Update tooltip message for never visited locations;
Dec 6, 2024
345c727
10434: Fix typing;
Dec 6, 2024
a2ad59a
10434: reuse report data for printable report; get term and year from…
Dec 6, 2024
5e035f5
Merge branch 'staging' into 10285-design-debt
jimlerza Dec 6, 2024
8e38f46
Merge branch 'staging' into 10285-design-debt
jimlerza Dec 8, 2024
9160f32
10434:Display new table on PDF generated report;
Dec 9, 2024
0a2a96c
10434: Display new columns in PDF;
Dec 9, 2024
6aa4fdd
10434: Delete test script
Dec 9, 2024
d48c875
10434: Fix Typing errors;
Dec 9, 2024
ced48d8
restoreDbFromSource drop tables: write a command to drop target tables
Mwindo Dec 10, 2024
3e0f714
restoreDbFromSource drop tables: slightly better comment
Mwindo Dec 10, 2024
44a4752
Merge branch 'staging' into 10489-story-staging
TomElliottFlexion Dec 11, 2024
52b7061
10434: Replace unit tests in interactor since we extracted out the fe…
Dec 12, 2024
3298205
10434: Refactor return object;
Dec 12, 2024
3051821
10434: Rename constant;
Dec 12, 2024
9d338e4
10434: Rename constant;
Dec 12, 2024
f21329d
10434: Refactor;
Dec 12, 2024
cc4064e
10434: WIP add unit test for new interactor;
Dec 12, 2024
2c50552
10489: update court issued document action to use judge full name rat…
TomElliottFlexion Dec 12, 2024
d12ddc4
10434: Increase coverave in unit tests;
Dec 12, 2024
04991a8
10434: Fix and Increase coverave in unit tests;
Dec 12, 2024
1270678
10489: update cypress test description
TomElliottFlexion Dec 12, 2024
2e9c15d
10434: Update approved PDF for trial session planning report;
Dec 12, 2024
ac9d2f3
10554 One-time script for cleaning up attachments on corrupted messages
En-8 Dec 6, 2024
4a2e932
10554: cleanup
En-8 Dec 12, 2024
ac2d045
Merge branch 'staging' into 10554-data-cleanup
En-8 Dec 13, 2024
d48fe23
Merge branch 'staging' into 10285-design-debt
btejha Dec 13, 2024
bbb02b3
Merge branch 'staging' into 10549-design-debt
btejha Dec 13, 2024
141537c
Merge remote-tracking branch 'taxCourt/staging' into 10434-story
Dec 13, 2024
9dbf5ce
10434: Remove re-routing in same page;
Dec 13, 2024
85d7a65
10434: Clear state for modal when navigating to trial session plannin…
Dec 13, 2024
4bd09c5
10434: Fix typings and open generated PDF in new tab;
Dec 13, 2024
9ef584a
10434: Fix validation error messages;
Dec 13, 2024
3e3755b
104343: Fix typings;
Dec 13, 2024
fa32194
10434: Fix tests for "runTrialSessionPlanningReportAction"; Delete co…
Dec 13, 2024
a20bff8
10434: Add cypress accessibility test;
Dec 13, 2024
ee84166
10434: Add unit tests for "getTrialSessionPlanningReportAction";
Dec 13, 2024
3174242
10434: Add unit tests for "setTrialSessionPlanningReportAction";
Dec 13, 2024
1ae65bd
10434: Fix test name;
Dec 13, 2024
167b1b1
10434: Add unit tests for "navigateToTrialSessionPlanningReportViewAc…
Dec 13, 2024
0ad7832
10434: Add unit tests for "setupTrialSessionPlanningReportViewDataAct…
Dec 13, 2024
32c9673
10434: Move types to shared location;
Dec 13, 2024
e85bd47
10434: Add unit tests around "trialSessionPlanningReportViewHelper";
Dec 13, 2024
060974f
10434: Remove unused route and sequence;
Dec 13, 2024
87d8616
10554: additional check
En-8 Dec 13, 2024
030bda1
Merge branch 'staging' into 10472-story
jimlerza Dec 14, 2024
dd0dc54
104343: Delete old trial session planning report view; Update display…
Dec 16, 2024
10d8acd
10419: target all messages, not just those not replied to
En-8 Dec 16, 2024
fb8ace6
Merge branch 'staging' into 10554-data-cleanup
jimlerza Dec 16, 2024
3575511
Merge branch 'staging' into 10489-story-staging
jimlerza Dec 17, 2024
df3f8d1
Merge pull request #5650 from flexion/10554-data-cleanup
jimlerza Dec 17, 2024
f2b1f89
Merge branch 'staging' into 10489-story-staging
jimlerza Dec 17, 2024
0540622
10434: Update string to match Figma;
Dec 17, 2024
48ea9ac
10434: Type sequence function;
Dec 17, 2024
1329121
10434: Add aria label to the not scheduled icon;
Dec 17, 2024
626ca52
10434: Move inlined styling to scss files;
Dec 17, 2024
677b95f
10489: Feedback changes updated
btejha Dec 17, 2024
ed52783
Merge branch '10489-story-staging' of github.com:flexion/ef-cms into …
btejha Dec 17, 2024
ef74cc9
10489: formatting
TomElliottFlexion Dec 17, 2024
e98729c
10489: use data-testid selectors consistently
TomElliottFlexion Dec 17, 2024
46beb53
10434: Add more validation to navigation to planning report;
Dec 17, 2024
2aae4a5
10434: Fix unit tests for "trialSessionPlanningReportViewHelper";
Dec 17, 2024
fdcdc8c
10434: Fix unit tests for "validateTrialSessionPlanningAction";
Dec 17, 2024
08178a1
10434: Fix unit tests for "setupTrialSessionPlanningReportViewDataAct…
Dec 17, 2024
af3fb23
put response data in correct format for logging
Mwindo Dec 16, 2024
7c3ca47
fix failing test
Mwindo Dec 16, 2024
ecab810
fix other failing tests
Mwindo Dec 16, 2024
097a5ce
trigger build to fix failing test
Mwindo Dec 17, 2024
f4d5498
trigger build to fix failing test again
Mwindo Dec 17, 2024
fbeb715
10434: Setup trial years in state when calling run planning report;
Dec 17, 2024
8ae05d3
10434: Fix header styling;
Dec 17, 2024
8b6e4de
10434: Fix typo;
Dec 17, 2024
2e47b6d
10434: Fix yellow background value;
Dec 17, 2024
e923479
10434: When successful disable howValidations flag;
Dec 17, 2024
a47ab9f
10434: Add cypress test to assure validation errors do not show up be…
Dec 17, 2024
3ea2a8b
10434: Fix bottom borders alignment;
Dec 18, 2024
1cbad73
10434: Update imports to use alias;
Dec 18, 2024
49803be
Merge pull request #5656 from flexion/devex-fix-logger-response-conte…
jimlerza Dec 18, 2024
4f07b8e
10434: Handle different casing for term when searching for special se…
Dec 18, 2024
8d8985c
10434: Make sure support for any casing in test;
Dec 18, 2024
6088c97
10434: Extract session terms string to a dictionary; Replace usage of…
Dec 18, 2024
b6b5524
10434: Type and format the query params in router;
Dec 18, 2024
3a82e41
10434: Use constant to create valid array;
Dec 18, 2024
207016b
10434: Convert year to string
Dec 19, 2024
80b7184
dep-updates-2024-12-20: update package files
akuny Dec 19, 2024
a50839d
10434: Fix typings;
Dec 19, 2024
1baaabd
dep-updates-2024-12-20: replace three deprecated aws-sdk deps with sm…
akuny Dec 19, 2024
39f2ea0
10434: Fix typings;
Dec 19, 2024
ea4aae4
dep-updates-2024-12-20: update terraform version
akuny Dec 19, 2024
37caf71
dep-updates-2024-12-20: update awscli version
akuny Dec 19, 2024
fd3d07f
10434: Fix unit test
Dec 19, 2024
4c05610
10472: PDF Preview in new Tab
JayFlexy Nov 14, 2024
7c060f6
Merge branch 'staging' into 10472-story
JayFlexy Dec 19, 2024
8e4bd1d
10472-story: add back mistakenly deleted sequence
JayFlexy Dec 19, 2024
d91a443
dep-updates-2024-12-20: bump ecr image version
akuny Dec 19, 2024
8a53504
dep-updates-2024-12-20: fix type errors introduced by updating react …
akuny Dec 20, 2024
a765c92
10472: rm empty file
JayFlexy Dec 20, 2024
4fe6b78
Merge branch 'staging' into 10489-story-staging
TomElliottFlexion Dec 20, 2024
2eaa79b
dep-updates-2024-12-20: fix ref handling in SearchDateRangePicker com…
akuny Dec 20, 2024
935bf70
10472: correct return type of loadPDFForPreviewInteractor
JayFlexy Dec 20, 2024
c21a605
10472: address final feedback
JayFlexy Dec 20, 2024
ef81347
Merge branch 'staging' into restoreDbFromSource-drop-all-target-table…
jimlerza Dec 20, 2024
4c0d271
Merge branch 'staging' into 10285-design-debt
jimlerza Dec 20, 2024
8baeafa
dep-updates-2024-12-20: add warning about react 18 -> 19 to dependenc…
akuny Dec 20, 2024
f43de33
Merge pull request #5624 from flexion/10285-design-debt
jimlerza Dec 20, 2024
a80fb89
Merge branch 'staging' into 10472-story
JayFlexy Dec 20, 2024
858b537
Merge branch 'staging' into 10489-story-staging
TomElliottFlexion Dec 20, 2024
9d9859a
Merge branch 'staging' into 10434-story
cruzjone-flexion Dec 23, 2024
66e33a6
dep-updates-2024-12-20: trigger CI
akuny Dec 23, 2024
62ced25
Merge branch 'staging' into dep-updates-2024-12-20
jimlerza Dec 23, 2024
2486532
Merge pull request #5600 from flexion/10489-story-staging
jimlerza Dec 23, 2024
a7af941
Merge branch 'staging' into 10549-design-debt
jimlerza Dec 23, 2024
977a460
Merge branch 'staging' into restoreDbFromSource-drop-all-target-table…
jimlerza Dec 23, 2024
32a21e5
Merge pull request #5642 from flexion/restoreDbFromSource-drop-all-ta…
jimlerza Dec 23, 2024
44ff4e1
Merge branch 'staging' into dep-updates-2024-12-20
jimlerza Dec 23, 2024
9b91f7f
Merge pull request #5662 from flexion/dep-updates-2024-12-20
jimlerza Dec 23, 2024
df93ea5
Merge branch 'staging' into 10472-story
jimlerza Dec 23, 2024
7dfe2a5
Merge branch 'staging' into 10434-story
cruzjone-flexion Dec 23, 2024
20200b6
Merge pull request #5545 from flexion/10472-story
jimlerza Dec 24, 2024
5eded88
Merge branch 'staging' into 10549-design-debt
jimlerza Dec 24, 2024
40575eb
Merge pull request #5610 from flexion/10549-design-debt
jimlerza Dec 24, 2024
0bd4a02
Merge branch 'staging' into 10434-story
jimlerza Dec 24, 2024
2c4fe0b
10571: Add docket suffix to custom case report results
btejha Dec 26, 2024
1d66b03
10571: Add docket number suffix to CSV file
btejha Dec 26, 2024
f6df409
10571: Add test
btejha Dec 27, 2024
ad64c99
Merge pull request #5663 from flexion/10434-story
jimlerza Jan 3, 2025
ce61b95
Merge branch 'staging' into 10571-story
jimlerza Jan 3, 2025
775fac9
Merge pull request #5664 from flexion/10571-story
jimlerza Jan 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]

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
@@ -0,0 +1,39 @@
import { checkA11y } from '../../../support/generalCommands/checkA11y';
import { loginAsDocketClerk1 } from '../../../../helpers/authentication/login-as-helpers';

describe('Trial Sessions Planning Report View - Accessibility', () => {
beforeEach(() => {
Cypress.session.clearCurrentSessionData();
});

it('should be free of a11y issues', () => {
loginAsDocketClerk1();
cy.get('[data-testid="trial-session-link"]').click();
cy.get('[data-testid="trial-session-planning-report-button"]').click();

cy.get('[data-testid="trial-session-planning-report-term-selector"]')
.find('option')
.last()
.then(option => {
const optionValue = option.val()!;
cy.get(
'[data-testid="trial-session-planning-report-term-selector"]',
).select(optionValue);
});

cy.get('[data-testid="trial-session-planning-report-year-selector"]')
.find('option')
.last()
.then(option => {
const optionValue = option.val()!;
cy.get(
'[data-testid="trial-session-planning-report-year-selector"]',
).select(optionValue);
});

cy.get('[data-testid="modal-button-confirm"]').click();

cy.get('[data-testid="cities-not-calendared-in-past-two-terms-table"]');
checkA11y();
});
});
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();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import { loginAsDocketClerk1 } from '../../../../helpers/authentication/login-as-helpers';

describe('Trial Sessions Planning Report View', () => {
describe('BUGs', () => {
it('should not display errors when user has not selected any option in dropdowns', () => {
loginAsDocketClerk1();
cy.get('[data-testid="trial-session-link"]').click();
cy.get('[data-testid="trial-session-planning-report-button"]').click();

cy.get('[data-testid="trial-session-planning-report-term-selector"]')
.find('option')
.last()
.then(option => {
const optionValue = option.val()!;
cy.get(
'[data-testid="trial-session-planning-report-term-selector"]',
).select(optionValue);
});

cy.get(
'[data-testid="trial-session-planning-report-modal-term-error"]',
).should('not.exist');

cy.get(
'[data-testid="trial-session-planning-report-modal-year-error"]',
).should('not.exist');

cy.get('[data-testid="trial-session-planning-report-year-selector"]')
.find('option')
.last()
.then(option => {
const optionValue = option.val()!;
cy.get(
'[data-testid="trial-session-planning-report-year-selector"]',
).select(optionValue);
});

cy.get(
'[data-testid="trial-session-planning-report-modal-term-error"]',
).should('not.exist');

cy.get(
'[data-testid="trial-session-planning-report-modal-year-error"]',
).should('not.exist');

cy.get('[data-testid="modal-button-confirm"]').click();

cy.get('[data-testid="cities-not-calendared-in-past-two-terms-table"]');

cy.get('[data-testid="dropdown-select-report"]').click();
cy.get('[data-testid="trial-session-planning-btn"').click();

cy.get('[data-testid="trial-session-planning-report-term-selector"]')
.find('option')
.last()
.then(option => {
const optionValue = option.val()!;
cy.get(
'[data-testid="trial-session-planning-report-term-selector"]',
).select(optionValue);
});

cy.get(
'[data-testid="trial-session-planning-report-modal-term-error"]',
).should('not.exist');

cy.get(
'[data-testid="trial-session-planning-report-modal-year-error"]',
).should('not.exist');
});
});
});
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
Loading