forked from ustaxcourt/ef-cms
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' of https://github.com/ustaxcourt/ef-cms into 1…
…0007-story
- Loading branch information
Showing
188 changed files
with
2,182 additions
and
1,939 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
39 changes: 39 additions & 0 deletions
39
cypress/cypress-integration/integration/petitions-clerk-files-external-document.cy.ts
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { externalUserSearchesDocketNumber } from '../../helpers/external-user-searches-docket-number'; | ||
import { loginAsPetitioner } from '../../helpers/auth/login-as-helpers'; | ||
import { petitionerCreatesEletronicCase } from '../../helpers/petitioner-creates-electronic-case'; | ||
import { petitionsClerkServesPetition } from '../support/setup/petitionsclerk-serves-petition'; | ||
|
||
describe( | ||
'Petitioner files external document on case', | ||
{ scrollBehavior: 'center' }, | ||
() => { | ||
it('should create an electronic petition, serve the petition, and files an "Answer" on the petition', () => { | ||
loginAsPetitioner(); | ||
petitionerCreatesEletronicCase().then(docketNumber => { | ||
petitionsClerkServesPetition(docketNumber); | ||
loginAsPetitioner(); | ||
externalUserSearchesDocketNumber(docketNumber); | ||
}); | ||
cy.get('[data-testid="button-file-document"]').click(); | ||
cy.get('[data-testid="ready-to-file"]').click(); | ||
cy.get('[data-testid="document-type"] .select-react-element__input').type( | ||
'Motion for Leave to File{enter}', | ||
); | ||
cy.get( | ||
'[data-testid="secondary-doc-secondary-document-type"] .select-react-element__input', | ||
).type('Answer{enter}'); | ||
cy.get('[data-testid="submit-document"]').click(); | ||
cy.get('[data-testid="primary-document"]').attachFile( | ||
'../fixtures/w3-dummy.pdf', | ||
); | ||
cy.get('[data-testid=primaryDocument-objections-No]').click(); | ||
cy.get('#submit-document').click(); | ||
cy.get('[data-testid=redaction-acknowledgement-label]').click(); | ||
cy.get('#submit-document').click(); | ||
cy.get('[data-testid="document-download-link-M115"]').should( | ||
'have.text', | ||
'Motion for Leave to File Answer (No Objection)', | ||
); | ||
}); | ||
}, | ||
); |
30 changes: 30 additions & 0 deletions
30
...ess/cypress-integration/integration/petitions-clerk-verify-chamber-phone-auto-fills.cy.ts
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { faker } from '@faker-js/faker'; | ||
import { loginAsPetitionsClerk } from '../../helpers/auth/login-as-helpers'; | ||
import { petitionsClerkCreatesTrialSession } from '../../helpers/petitionsclerk-creates-trial-session'; | ||
|
||
faker.seed(faker.number.int()); | ||
|
||
describe('trial sessions', () => { | ||
it('verify the auto fill functionality for chambers phone number works when selectin a judge', () => { | ||
loginAsPetitionsClerk(); | ||
petitionsClerkCreatesTrialSession().then(trialSessionId => { | ||
cy.get('[data-testid=new-trial-sessions-tab]').click(); | ||
cy.get(`[data-testid=trial-location-link-${trialSessionId}]`).click(); | ||
}); | ||
cy.get('[data-testid=assignments-sessions-chambers-phone-number]').should( | ||
'have.text', | ||
'(202) 521-0662', | ||
); | ||
|
||
cy.get('[data-testid="edit-trial-session"]').click(); | ||
cy.get('[data-testid="edit-trial-session-chambers-phone-number"]').clear(); | ||
cy.get('[data-testid="edit-trial-session-chambers-phone-number"]').type( | ||
'(123) 4567890', | ||
); | ||
cy.get('[data-testid="submit-edit-trial-session"]').click(); | ||
cy.get('[data-testid=assignments-sessions-chambers-phone-number]').should( | ||
'have.text', | ||
'(123) 4567890', | ||
); | ||
}); | ||
}); |
42 changes: 42 additions & 0 deletions
42
cypress/cypress-integration/integration/practitioners-with-no-cases.cy.ts
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { generateRandomPhoneNumber } from '../support/helpers'; | ||
import { navigateTo as loginAs } from '../support/pages/maintenance'; | ||
|
||
describe('Practitioners with no cases', () => { | ||
it('should allow the practitioner to edit their phone number multiple times', () => { | ||
loginAs('privatepractitioner4'); | ||
cy.get('[data-testid="account-menu-button"]').click(); | ||
cy.get('[data-testid="my-account-link"]').click(); | ||
cy.get('[data-testid="edit-contact-info"]').click(); | ||
|
||
const randomPhoneNumber = generateRandomPhoneNumber(); | ||
cy.get('[data-testid="phone-number-input"').as('phoneNumberInput'); | ||
cy.get('@phoneNumberInput').clear(); | ||
cy.get('@phoneNumberInput').type(randomPhoneNumber); | ||
|
||
cy.get('[data-testid="save-edit-contact"]').click(); | ||
cy.get('[data-testid="success-alert"]').should('exist'); | ||
|
||
cy.get('[data-testid="account-menu-button"]').click(); | ||
cy.get('[data-testid="my-account-link"]').click(); | ||
cy.get('[data-testid="contact-info-phone-number"]').should( | ||
'contain.text', | ||
randomPhoneNumber, | ||
); | ||
|
||
cy.get('[data-testid="edit-contact-info"]').click(); | ||
const anotherRandomPhoneNumber = generateRandomPhoneNumber(); | ||
cy.get('[data-testid="phone-number-input"').as('phoneNumberInput'); | ||
cy.get('@phoneNumberInput').clear(); | ||
cy.get('@phoneNumberInput').type(anotherRandomPhoneNumber); | ||
|
||
cy.get('[data-testid="save-edit-contact"]').click(); | ||
cy.get('[data-testid="success-alert"]').should('exist'); | ||
|
||
cy.get('[data-testid="account-menu-button"]').click(); | ||
cy.get('[data-testid="my-account-link"]').click(); | ||
cy.get('[data-testid="contact-info-phone-number"]').should( | ||
'contain.text', | ||
anotherRandomPhoneNumber, | ||
); | ||
}); | ||
}); |
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
32 changes: 4 additions & 28 deletions
32
cypress/cypress-smoketests/integration/create-trial-session.cy.ts
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,36 +1,12 @@ | ||
import { faker } from '@faker-js/faker'; | ||
import { loginAsPetitionsClerk } from '../../helpers/auth/login-as-helpers'; | ||
import { petitionsClerkCreatesTrialSession } from '../../helpers/petitionsclerk-creates-trial-session'; | ||
|
||
faker.seed(faker.number.int()); | ||
|
||
describe('trial sessions', () => { | ||
it('a petitionsclerk should be able to create a trial session', () => { | ||
cy.login('petitionsclerk1'); | ||
cy.get('[data-testid="inbox-tab-content"]').should('exist'); | ||
cy.get('[data-testid="trial-session-link"]').click(); | ||
cy.get('[data-testid="add-trial-session-button"]').click(); | ||
cy.get('#start-date-picker').clear(); | ||
cy.get('#start-date-picker').type('02/02/2099'); | ||
cy.get('#estimated-end-date-picker').clear(); | ||
cy.get('#estimated-end-date-picker').type('02/02/2100'); | ||
cy.get('[data-testid="session-type-Hybrid"]').click(); | ||
cy.get('[data-testid="trial-session-number-of-cases-allowed"]').clear(); | ||
cy.get('[data-testid="trial-session-number-of-cases-allowed"]').type('10'); | ||
cy.get('[data-testid="inPerson-proceeding-label"]').click(); | ||
cy.get('[data-testid="trial-session-trial-location"]').select( | ||
'Anchorage, Alaska', | ||
); | ||
cy.get('[data-testid="courthouse-name"]').clear(); | ||
cy.get('[data-testid="courthouse-name"]').type('a courthouse'); | ||
cy.get('[data-testid="city"]').clear(); | ||
cy.get('[data-testid="city"]').type('cleveland'); | ||
cy.get('[data-testid="state"]').select('TN'); | ||
cy.get('[data-testid="postal-code"]').clear(); | ||
cy.get('[data-testid="postal-code"]').type('33333'); | ||
cy.get('[data-testid="trial-session-judge"]').select('Colvin'); | ||
cy.get('[data-testid="trial-session-trial-clerk"]').select( | ||
'Test trialclerk1', | ||
); | ||
cy.get('[data-testid="submit-trial-session"]').click(); | ||
cy.get('[data-testid="success-alert"]').should('exist'); | ||
loginAsPetitionsClerk(); | ||
petitionsClerkCreatesTrialSession(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export function externalUserSearchesDocketNumber(docketNumber: string) { | ||
cy.get('[data-testid="docket-search-field"]').type(docketNumber); | ||
cy.get('[data-testid="search-by-docket-number"]').click(); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
export function petitionsClerkCreatesTrialSession() { | ||
cy.get('[data-testid="inbox-tab-content"]').should('exist'); | ||
cy.get('[data-testid="trial-session-link"]').click(); | ||
cy.get('[data-testid="add-trial-session-button"]').click(); | ||
cy.get('#start-date-picker').clear(); | ||
cy.get('#start-date-picker').type('02/02/2099'); | ||
cy.get('#estimated-end-date-picker').clear(); | ||
cy.get('#estimated-end-date-picker').type('02/02/2100'); | ||
cy.get('[data-testid="session-type-Hybrid"]').click(); | ||
cy.get('[data-testid="trial-session-number-of-cases-allowed"]').clear(); | ||
cy.get('[data-testid="trial-session-number-of-cases-allowed"]').type('10'); | ||
cy.get('[data-testid="inPerson-proceeding-label"]').click(); | ||
cy.get('[data-testid="trial-session-trial-location"]').select( | ||
'Anchorage, Alaska', | ||
); | ||
cy.get('[data-testid="courthouse-name"]').clear(); | ||
cy.get('[data-testid="courthouse-name"]').type('a courthouse'); | ||
cy.get('[data-testid="city"]').clear(); | ||
cy.get('[data-testid="city"]').type('cleveland'); | ||
cy.get('[data-testid="state"]').select('TN'); | ||
cy.get('[data-testid="postal-code"]').clear(); | ||
cy.get('[data-testid="postal-code"]').type('33333'); | ||
cy.get('[data-testid="trial-session-judge"]').select('Colvin'); | ||
cy.get('[data-testid="trial-session-trial-clerk"]').select( | ||
'Test trialclerk1', | ||
); | ||
cy.get('[data-testid="submit-trial-session"]').click(); | ||
cy.get('[data-testid="success-alert"]').should('exist'); | ||
|
||
return cy | ||
.get('[data-testid="success-alert"]') | ||
.invoke('attr', 'data-metadata'); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
# Sets the title and name of the clerk of the court | ||
|
||
# Usage | ||
# ENV=dev ./setup-clerk-of-court-config.sh | ||
|
||
./check-env-variables.sh \ | ||
"ENV" \ | ||
"AWS_SECRET_ACCESS_KEY" \ | ||
"AWS_ACCESS_KEY_ID" | ||
|
||
ITEM=$(cat <<-END | ||
{ | ||
"pk": { | ||
"S": "clerk-of-court-configuration" | ||
}, | ||
"sk":{ | ||
"S": "clerk-of-court-configuration" | ||
}, | ||
"current": { | ||
"M": {"name": {"S": "Stephanie A. Servoss"}, "title": {"S": "Clerk of the Court"}} | ||
} | ||
} | ||
END | ||
) | ||
|
||
aws dynamodb put-item \ | ||
--region us-east-1 \ | ||
--table-name "efcms-deploy-${ENV}" \ | ||
--item "${ITEM}" |
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.