-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5330 from ustaxcourt/staging
merge staging into prod
- Loading branch information
Showing
1,220 changed files
with
24,137 additions
and
21,126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.7 | ||
efcms-docker-image: &efcms-docker-image $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/ef-cms-us-east-1:4.3.8 | ||
|
||
parameters: | ||
run_build_and_deploy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { ROLES } from '../../../../shared/src/business/entities/EntityConstants'; | ||
/* eslint-disable promise/no-nesting */ | ||
import { assertExists, retry } from '../../../helpers/retry'; | ||
import { goToCase } from '../../../helpers/caseDetail/go-to-case'; | ||
import { | ||
|
@@ -10,29 +10,10 @@ import { petitionsClerkServesPetition } from '../../../helpers/documentQC/petiti | |
import { uploadFile } from '../../../helpers/file/upload-file'; | ||
|
||
describe('Document QC Complete', () => { | ||
let CASE_SERVICE_SUPERVISOR_INFO: { userId: string; name: string } = | ||
undefined as unknown as { userId: string; name: string }; | ||
let DOCKET_CLERK_INFO: { userId: string; name: string } = | ||
undefined as unknown as { userId: string; name: string }; | ||
|
||
const docketSectionMessage = 'To CSS under Docket Section'; | ||
const petitionsSectionMessage = 'To CSS under Petitions Section'; | ||
|
||
before(() => { | ||
cy.intercept('GET', '**/users', req => { | ||
req.on('before:response', res => { | ||
if (res.body.role === ROLES.caseServicesSupervisor) { | ||
CASE_SERVICE_SUPERVISOR_INFO = res.body; | ||
} | ||
if (res.body.role === ROLES.docketClerk) { | ||
DOCKET_CLERK_INFO = res.body; | ||
} | ||
}); | ||
}); | ||
|
||
cy.login('caseServicesSupervisor1'); | ||
cy.login('docketclerk1'); | ||
|
||
loginAsPetitioner(); | ||
petitionerCreatesElectronicCase().then(docketNumber => { | ||
cy.wrap(docketNumber).as('DOCKET_NUMBER'); | ||
|
@@ -54,18 +35,22 @@ describe('Document QC Complete', () => { | |
cy.get<string>('@DOCKET_NUMBER').then(docketNumber => { | ||
loginAsAdmissionsClerk(); | ||
goToCase(docketNumber); | ||
cy.task<{ userId: string; name: string; email: string; role: string }>( | ||
'getUserByEmail', | ||
'[email protected]', | ||
).then(caseServiceSupervisorInfo => { | ||
sendMessages( | ||
caseServiceSupervisorInfo.userId, | ||
docketSectionMessage, | ||
'docket', | ||
); | ||
|
||
sendMessages( | ||
CASE_SERVICE_SUPERVISOR_INFO.userId, | ||
docketSectionMessage, | ||
'docket', | ||
); | ||
|
||
sendMessages( | ||
CASE_SERVICE_SUPERVISOR_INFO.userId, | ||
petitionsSectionMessage, | ||
'petitions', | ||
); | ||
sendMessages( | ||
caseServiceSupervisorInfo.userId, | ||
petitionsSectionMessage, | ||
'petitions', | ||
); | ||
}); | ||
|
||
retry(() => { | ||
cy.login('caseServicesSupervisor1', '/messages/my/inbox'); | ||
|
@@ -125,42 +110,49 @@ describe('Document QC Complete', () => { | |
cy.get(`[data-testid="work-item-${docketNumber}"]`) | ||
.find('[data-testid="checkbox-assign-work-item"]') | ||
.click(); | ||
|
||
cy.get('[data-testid="dropdown-select-assignee"]').select( | ||
DOCKET_CLERK_INFO.name, | ||
); | ||
|
||
retry(() => { | ||
cy.login( | ||
'caseServicesSupervisor1', | ||
'/document-qc/section/inbox/selectedSection?section=docket', | ||
cy.task<{ userId: string; name: string; email: string; role: string }>( | ||
'getUserByEmail', | ||
'[email protected]', | ||
).then(docketClerkInfo => { | ||
cy.get('[data-testid="dropdown-select-assignee"]').select( | ||
docketClerkInfo.name, | ||
); | ||
cy.get('table.usa-table'); | ||
return cy.get('body').then(body => { | ||
const workItem = body.find( | ||
`[data-testid="work-item-${docketNumber}"]`, | ||
); | ||
const assigneeName = workItem.find( | ||
'[data-testid="table-column-work-item-assigned-to"]', | ||
|
||
retry(() => { | ||
cy.login( | ||
'caseServicesSupervisor1', | ||
'/document-qc/section/inbox/selectedSection?section=docket', | ||
); | ||
const text = assigneeName.text(); | ||
return cy.wrap(text.includes(DOCKET_CLERK_INFO.name)); | ||
cy.get('table.usa-table'); | ||
return cy.get('body').then(body => { | ||
const workItem = body.find( | ||
`[data-testid="work-item-${docketNumber}"]`, | ||
); | ||
const assigneeName = workItem.find( | ||
'[data-testid="table-column-work-item-assigned-to"]', | ||
); | ||
const text = assigneeName.text(); | ||
return cy.wrap(text.includes(docketClerkInfo.name)); | ||
}); | ||
}); | ||
}); | ||
|
||
cy.get(`[data-testid="work-item-${docketNumber}"]`) | ||
.find('.message-document-title') | ||
.find('a') | ||
.click(); | ||
cy.get(`[data-testid="work-item-${docketNumber}"]`) | ||
.find('.message-document-title') | ||
.find('a') | ||
.click(); | ||
|
||
cy.get('#save-and-finish').click(); | ||
cy.get('#save-and-finish').click(); | ||
|
||
cy.get('[data-testid="success-alert"]').should('contain', 'QC Completed'); | ||
cy.get('[data-testid="success-alert"]').should( | ||
'contain', | ||
'QC Completed', | ||
); | ||
|
||
cy.visit('/document-qc/my/outbox'); | ||
cy.get(`[data-testid="section-work-item-outbox-${docketNumber}"]`).should( | ||
'exist', | ||
); | ||
cy.visit('/document-qc/my/outbox'); | ||
cy.get( | ||
`[data-testid="section-work-item-outbox-${docketNumber}"]`, | ||
).should('exist'); | ||
}); | ||
}); | ||
}); | ||
|
||
|
@@ -181,9 +173,14 @@ describe('Document QC Complete', () => { | |
.find('[data-testid="checkbox-assign-work-item"]') | ||
.click(); | ||
|
||
cy.get('[data-testid="dropdown-select-assignee"]').select( | ||
CASE_SERVICE_SUPERVISOR_INFO.name, | ||
); | ||
cy.task<{ userId: string; name: string; email: string; role: string }>( | ||
'getUserByEmail', | ||
'[email protected]', | ||
).then(caseServiceSupervisorInfo => { | ||
cy.get('[data-testid="dropdown-select-assignee"]').select( | ||
caseServiceSupervisorInfo.name, | ||
); | ||
}); | ||
|
||
cy.visit('/document-qc/my/inbox'); | ||
cy.get( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.