-
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 branch '10353-bug-duplicate-cognito-users' of github.com:flexio…
…n/ef-cms into 10353-bug-duplicate-cognito-users
- Loading branch information
Showing
381 changed files
with
12,931 additions
and
4,451 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.6 | ||
efcms-docker-image: &efcms-docker-image $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/ef-cms-us-east-1:4.3.7 | ||
|
||
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// An interface for exposing the cerebral controller on the window object, which | ||
// can be useful for temporarily overwriting constants in cypress. | ||
export interface ITestableWindow { | ||
cerebral: { | ||
getState: () => any; | ||
getModel: () => any; | ||
}; | ||
} |
1 change: 1 addition & 0 deletions
1
cypress/helpers/advancedSearch/external-user-searches-docket-number.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,4 +1,5 @@ | ||
export function externalUserSearchesDocketNumber(docketNumber: string) { | ||
cy.get('[data-testid="docket-search-field"]').should('exist'); | ||
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
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,19 @@ | ||
import { ITestableWindow } from '../../helpers/ITestableWindow'; | ||
|
||
// This is a hack, but I do not know a better way. | ||
export const overrideIdleTimeouts = ({ | ||
modalTimeout, | ||
sessionTimeout, | ||
windowObj, // For native cypress, this needs to be defined. For the puppeteer plugin, it should be left blank. | ||
}: { | ||
modalTimeout: number; | ||
sessionTimeout: number; | ||
windowObj?: ITestableWindow; | ||
}) => { | ||
const currentWindow = windowObj || (window as unknown as ITestableWindow); | ||
currentWindow.cerebral.getModel().set(['constants'], { | ||
...currentWindow.cerebral.getState().constants, | ||
SESSION_MODAL_TIMEOUT: modalTimeout, | ||
SESSION_TIMEOUT: sessionTimeout, | ||
}); | ||
}; |
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,5 @@ | ||
import './commands'; | ||
import '@cypress/puppeteer/support'; | ||
import 'cypress-axe'; | ||
|
||
before(() => { | ||
|
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,46 @@ | ||
import { | ||
FORMATS, | ||
formatNow, | ||
} from '../../../shared/src/business/utilities/DateHandler'; | ||
|
||
export const docketNumber = '107-19'; | ||
export const leadCaseDocketNumber = '102-67'; | ||
export const statusReportDocketEntryId = '178af2d2-fab1-445a-a729-d3da63517a0a'; | ||
export const messages = { | ||
statusReport: { | ||
messageId: '73d4365b-8b3a-4b01-9ca3-7087f7a6d4b5', | ||
name: 'Status Report', | ||
}, | ||
testStatusReportOrderSigned: { | ||
messageId: '32484c7f-4606-49fc-89f1-27ba1d5596be', | ||
name: 'Test Status Report Order (Signed)', | ||
}, | ||
testStatusReportOrderUnsigned: { | ||
messageId: '34483b5b-29de-4ad4-8caa-59f71ad6d906', | ||
name: 'Test Status Report Order (Unsigned)', | ||
}, | ||
}; | ||
export const expectedPdfLines = [ | ||
'On June 28, 2024, a status report was filed (Index no. 5). For cause, it is', | ||
`ORDERED that the parties shall file a further status report by ${formatNow(FORMATS.MONTH_DAY_YEAR)}. It is further`, | ||
'ORDERED that this case is stricken from the trial session. It is further', | ||
'ORDERED that jurisdiction is retained by the undersigned. It is further', | ||
'ORDERED that Here is my additional order text.', | ||
]; | ||
export const selectAllOptionsInForm = () => { | ||
cy.get('#order-type-status-report').check({ force: true }); | ||
cy.get('#status-report-due-date-picker').type(formatNow(FORMATS.MMDDYYYY)); | ||
cy.get('#stricken-from-trial-sessions').check({ force: true }); | ||
cy.get('#jurisdiction-retained').check({ force: true }); | ||
cy.get('#additional-order-text').type('Here is my additional order text.'); | ||
}; | ||
|
||
export const getLastDraftOrderElementFromDrafts = () => { | ||
return cy.get('button:contains(Order)').last(); | ||
}; | ||
|
||
export const getLastDraftOrderElementIndexFromDrafts = () => { | ||
return getLastDraftOrderElementFromDrafts().then(lastOrderButton => { | ||
return lastOrderButton.index(); | ||
}); | ||
}; |
15 changes: 15 additions & 0 deletions
15
...nly/tests/accessibility/petitionGeneration/petition-generation-before-filing-a-case.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,15 @@ | ||
import { checkA11y } from '../../../support/generalCommands/checkA11y'; | ||
import { loginAsPetitioner } from '../../../../helpers/authentication/login-as-helpers'; | ||
|
||
describe('Petition generation - intro pages', () => { | ||
it('welcome to dawson: should be free of a11y issues', () => { | ||
loginAsPetitioner('petitioner7'); | ||
checkA11y(); | ||
}); | ||
|
||
it('before filing a case: should be free of a11y issues', () => { | ||
loginAsPetitioner(); | ||
cy.visit('/before-filing-a-petition'); | ||
checkA11y(); | ||
}); | ||
}); |
Oops, something went wrong.