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

10440 story #5731

Open
wants to merge 53 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
9043e64
10440: WIP Remove cases from eligibible case list when a case is bloc…
Jan 22, 2025
a5b07b6
10440: Check for unique keys when batch writing
Jan 23, 2025
bd6a79a
10440: Add types
Jan 23, 2025
1ac6526
10440 Create case edges when unblocking
Jan 23, 2025
a40b021
10440: Use up to date sort tags
Jan 23, 2025
b513da5
10440: Update Blocked tag on CaseDetailHeader when the blocked status…
Jan 23, 2025
033635b
10440: WIP get consolidated group
Jan 23, 2025
a821e1c
10440: Get blocked cases and consolidated cases together
Jan 24, 2025
cd5ef37
10440: Remove app Context from helper
Jan 24, 2025
e7ca12d
10440 add blocked reason and indentation
pavanyenduri Jan 24, 2025
9f85ac9
10440: Sorting
Jan 24, 2025
99497ee
10440 sorting cases inside consolidated cases
pavanyenduri Jan 28, 2025
6abb66c
10440: refactor how to sort
Jan 28, 2025
6a0a2db
10440: organize tests by describe
Jan 28, 2025
f306a17
10440: Make blank template tests
Jan 28, 2025
962169a
10440: Add formatting test
Jan 28, 2025
000d495
10440: apply filter to consolidated groups
Jan 28, 2025
d04e0f8
10440: comment
Jan 28, 2025
04cbdf2
10440 added reason filter
Jan 28, 2025
f8fe8e2
10440: added grouped with blocked cases option
Jan 28, 2025
ea6c988
10440 add paginator
Jan 28, 2025
4cc23b7
Merge branch 'staging' of github.com:ustaxcourt/ef-cms into 10440-story
Jan 28, 2025
90ef4ba
10440: WIP add cypress test
Jan 28, 2025
8a8887c
10440: Add consolidated groups to cypress tests for blocked cases report
Jan 29, 2025
352b9c6
Merge branch 'staging' of github.com:ustaxcourt/ef-cms into 10440-story
Jan 29, 2025
ab05283
10440: Add mocks for mapping records
Jan 29, 2025
cc6ee52
10440: Update tests to not use applicationContext
Jan 29, 2025
9654a22
10440: Fix type errors for generics with mapping records
Jan 29, 2025
acdac2b
10440: Fix mocking errors
Jan 29, 2025
a90882f
10440: Remove applicationContext
Jan 30, 2025
658056c
Merge branch 'staging' of github.com:ustaxcourt/ef-cms into 10440-story
Jan 30, 2025
491ce06
10440: Do not look at the case being passed in as whoever is calling …
Jan 30, 2025
01e896a
Merge branch 'staging' of github.com:ustaxcourt/ef-cms into 10440-story
Jan 30, 2025
0d731ee
10440: Fix mocks
Jan 30, 2025
4a954f6
10440: WIP convert integration test to cypress test
Jan 30, 2025
3a57522
10440: WIP converting old integration test to cypress
Jan 31, 2025
1b05e9f
Merge branch 'staging' of github.com:ustaxcourt/ef-cms into 10440-story
Jan 31, 2025
2ff1ec6
10440: WIP add on to test for showing a case as ineligible when it ha…
Jan 31, 2025
1fe6f6a
10440: WIP update blocked cases tests for case deadlines
Jan 31, 2025
3267f0f
10440: WIP update blocked cases tests for pending items
Feb 3, 2025
98334f6
10440: WIP a manually added case should not show in blocked cases report
Feb 3, 2025
c29cd4b
10440: Look up case by lead docket number when creating case trial ma…
Feb 3, 2025
ce8b589
10440: Add expectations for blocked case tag. Remove duplicative old …
Feb 3, 2025
25bbc9b
10440: move blocked cases to new folder under trial sessions
Feb 3, 2025
602c2f9
Merge branch 'staging' of github.com:ustaxcourt/ef-cms into 10440-story
pavanyenduri Feb 4, 2025
7f172ff
10440 add paginator on top of table
pavanyenduri Feb 5, 2025
db08483
10440 add blockedDate to the cases which are blocked due to association
pavanyenduri Feb 5, 2025
c7bc86f
10440: Update styling for paginator
Feb 5, 2025
8c9553a
10440-reset the activePage whenever table data changes
Feb 5, 2025
7afdd85
Merge branch 'staging' of github.com:ustaxcourt/ef-cms into 10440-story
Feb 6, 2025
ab794a2
10440: Move trial location to its own row
Feb 6, 2025
9466b59
Merge branch 'staging' into 10440-story
jimlerza Feb 6, 2025
c7a860c
Merge branch 'staging' into 10440-story
jimlerza Feb 12, 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
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { loginAsPetitionsClerk1 } from 'cypress/helpers/authentication/login-as-helpers';
import { goToCase } from 'cypress/helpers/caseDetail/go-to-case';

export function petitionsClerkAddsRespondentToCase(
docketNumber: string,
barNumber: string,
) {
cy.login('petitionsclerk1', `case-detail/${docketNumber}`);
loginAsPetitionsClerk1();
goToCase(docketNumber);
cy.get('[data-testid="tab-case-information"]').click();
cy.get('[data-testid="tab-parties"]').click();
cy.get('[data-testid="respondent-counsel"]').click();
Expand Down
42 changes: 27 additions & 15 deletions cypress/helpers/fileAPetition/create-and-serve-paper-petition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ export function createAndServePaperPetition(
procedureType = 'Regular',
trialLocation = 'Birmingham, Alabama',
yearReceived = '2020',
includeApwDocument = true,
}: Partial<{
yearReceived: string;
procedureType: ProcedureType;
trialLocation: string;
name: string;
includeApwDocument: boolean;
}> = {
name: 'rick james ' + Date.now(),
procedureType: 'Regular',
trialLocation: 'Birmingham, Alabama',
yearReceived: '2020',
includeApwDocument: true,
},
): Cypress.Chainable<{
docketNumber: string;
Expand Down Expand Up @@ -108,15 +111,18 @@ export function createAndServePaperPetition(
selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]',
});

cy.get(
'[data-testid="tabButton-applicationForWaiverOfFilingFeeFile"]',
).click();
cy.get('[data-testid="upload-pdf-button"]').click();
attachFile({
filePath: '../../helpers/file/sample.pdf',
selector: 'input#applicationForWaiverOfFilingFeeFile-file',
selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]',
});
if (includeApwDocument) {
// Having this document means creating a pending item and blocking case from trial
cy.get(
'[data-testid="tabButton-applicationForWaiverOfFilingFeeFile"]',
).click();
cy.get('[data-testid="upload-pdf-button"]').click();
attachFile({
filePath: '../../helpers/file/sample.pdf',
selector: 'input#applicationForWaiverOfFilingFeeFile-file',
selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]',
});
}

cy.get('[data-testid="submit-paper-petition"]').click();
return cy
Expand All @@ -140,13 +146,19 @@ export function createAndServePaperPetition(
);

const expectedDocuments = [
{ eventCode: 'P', index: 1, servedTo: 'R' },
{ eventCode: 'ATP', index: 2, servedTo: 'R' },
{ eventCode: 'APW', index: 3, servedTo: 'R' },
{ eventCode: 'DISC', index: 4, servedTo: 'R' },
{ eventCode: 'RQT', index: 5, servedTo: 'R' },
{ eventCode: 'NOTR', index: 6, servedTo: 'P' },
{ eventCode: 'P', servedTo: 'R', index: 1 },
{ eventCode: 'ATP', servedTo: 'R', index: 2 },
{ eventCode: 'DISC', servedTo: 'R', index: includeApwDocument ? 4 : 3 },
{ eventCode: 'RQT', servedTo: 'R', index: includeApwDocument ? 5 : 4 },
{ eventCode: 'NOTR', servedTo: 'P', index: includeApwDocument ? 6 : 5 },
];
if (includeApwDocument) {
expectedDocuments.splice(1, 0, {
eventCode: 'APW',
servedTo: 'R',
index: 3,
});
}

expectedDocuments.forEach(({ eventCode, index, servedTo }) => {
cy.get(`[data-testid="docket-entry-eventCode-${index}"]`).should(
Expand Down
62 changes: 62 additions & 0 deletions cypress/helpers/fileAPetition/create-consolidated-case-group.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import {
CASE_STATUS_TYPES,
CaseStatus,
ProcedureType,
} from '@shared/business/entities/EntityConstants';
import { loginAsDocketClerk1 } from 'cypress/helpers/authentication/login-as-helpers';
import { addCaseToGroup } from 'cypress/helpers/caseDetail/add-case-to-group';
import { updateCaseStatus } from 'cypress/helpers/caseDetail/caseInformation/update-case-status';
import { goToCase } from 'cypress/helpers/caseDetail/go-to-case';
import { createAndServePaperPetition } from 'cypress/helpers/fileAPetition/create-and-serve-paper-petition';

export function createAndServeConsolidatedGroup(
{
caseStatus = CASE_STATUS_TYPES.generalDocketReadyForTrial,
judge = '',
procedureType = undefined,
trialLocation = undefined,
includeApwDocument = undefined,
}: Partial<{
includeApwDocument: boolean;
caseStatus: CaseStatus;
judge: string;
procedureType: ProcedureType;
trialLocation: string;
}> = {
includeApwDocument: undefined,
caseStatus: CASE_STATUS_TYPES.generalDocketReadyForTrial,
judge: '',
procedureType: undefined,
trialLocation: undefined,
},
): Cypress.Chainable<{
leadDocketNumber: string;
memberDocketNumber: string;
}> {
return createAndServePaperPetition({
yearReceived: '2019',
includeApwDocument,
procedureType,
trialLocation,
}).then(({ docketNumber: leadDocketNumber }) => {
loginAsDocketClerk1();
goToCase(leadDocketNumber);
updateCaseStatus(caseStatus, judge);

return createAndServePaperPetition({
yearReceived: '2023',
includeApwDocument,
procedureType,
trialLocation,
}).then(({ docketNumber: memberDocketNumber }) => {
loginAsDocketClerk1();
goToCase(memberDocketNumber);
updateCaseStatus(caseStatus);
addCaseToGroup(leadDocketNumber);
return cy.wrap({
leadDocketNumber,
memberDocketNumber,
});
});
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ describe('Case Detail Page - Petitions Clerk Accessibility', () => {

cy.visit('/case-detail/107-19');
cy.get('[data-testid="docket-record-table"]').should('exist');
cy.get('#tab-tracked-items').click();
cy.get('[data-testid=tab-tracked-items]').click();

checkA11y();
});
Expand All @@ -347,8 +347,8 @@ describe('Case Detail Page - Petitions Clerk Accessibility', () => {

cy.visit('/case-detail/107-19');
cy.get('[data-testid="docket-record-table"]').should('exist');
cy.get('#tab-tracked-items').click();
cy.get('#tab-pending-report').click();
cy.get('[data-testid=tab-tracked-items]').click();
cy.get('[data-testid="pending-report-tab"]').click();

checkA11y();
});
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { addCaseToGroup } from '../../../../helpers/caseDetail/add-case-to-group';
import {
assertDoesNotExist,
assertExists,
Expand All @@ -14,6 +13,8 @@ import {
} from '../../../../helpers/authentication/login-as-helpers';
import { navigateToJudgeActivityReport } from '../../../../helpers/judgeActivityReport/navigate-to-judge-activity-report';
import { updateCaseStatus } from '../../../../helpers/caseDetail/caseInformation/update-case-status';
import { createAndServeConsolidatedGroup } from 'cypress/helpers/fileAPetition/create-consolidated-case-group';
import { CASE_STATUS_TYPES } from '@shared/business/entities/EntityConstants';

describe('Verify the activity report', () => {
describe('Statistics table', () => {
Expand Down Expand Up @@ -181,34 +182,22 @@ describe('Verify the activity report', () => {
});

it('should display lead case of a consolidated group', () => {
createAndServePaperPetition().then(
({ docketNumber: childDocketNumber }) => {
loginAsDocketClerk1();
goToCase(childDocketNumber);
updateCaseStatus('Submitted', 'Colvin');

createAndServePaperPetition({ yearReceived: '2019' }).then(
({ docketNumber: leadDocketNumber }) => {
loginAsDocketClerk1();
goToCase(leadDocketNumber);
updateCaseStatus('Submitted', 'Colvin');
addCaseToGroup(childDocketNumber);

retry(() => {
loginAsColvin();
navigateToJudgeActivityReport('submitted-and-cav');
return assertExists(`[data-testid="${leadDocketNumber}"]`).then(
isLeadVisible => {
assertDoesNotExist(
`[data-testid="${childDocketNumber}"]`,
).then(isChildHidden => isLeadVisible && isChildHidden);
},
);
});
createAndServeConsolidatedGroup({
caseStatus: CASE_STATUS_TYPES.submitted,
judge: 'Colvin',
}).then(({ leadDocketNumber, memberDocketNumber }) => {
retry(() => {
loginAsColvin();
navigateToJudgeActivityReport('submitted-and-cav');
return assertExists(`[data-testid="${leadDocketNumber}"]`).then(
isLeadVisible => {
assertDoesNotExist(`[data-testid="${memberDocketNumber}"]`).then(
isChildHidden => isLeadVisible && isChildHidden,
);
},
);
},
);
});
});
});
});

Expand Down
Loading
Loading