-
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 'test' of https://github.com/ustaxcourt/ef-cms into 1049…
…2-dxox-intermediate-branch-to-test-1733243644
- Loading branch information
Showing
383 changed files
with
539,525 additions
and
9,329 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
13 changes: 13 additions & 0 deletions
13
...ess/helpers/caseDetail/docketRecord/paperFiling/create-and-save-for-later-paper-filing.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,13 @@ | ||
import { fillPaperFilingForm } from './fill-paper-filing-form'; | ||
|
||
export function createAndSaveForLaterPaperFiling({ | ||
dateReceived, | ||
documentType, | ||
}: { | ||
documentType: string; | ||
dateReceived: string; | ||
}) { | ||
fillPaperFilingForm({ dateReceived, documentType }); | ||
|
||
cy.get('[data-testid="save-for-later"]').click(); | ||
} |
35 changes: 13 additions & 22 deletions
35
cypress/helpers/caseDetail/docketRecord/paperFiling/create-and-serve-paper-filing.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,27 +1,18 @@ | ||
import { attachFile } from '../../../file/upload-file'; | ||
import { selectTypeaheadInput } from '../../../components/typeAhead/select-typeahead-input'; | ||
import { fillPaperFilingForm } from './fill-paper-filing-form'; | ||
|
||
export function createAndServePaperFiling( | ||
documentType: string, | ||
dateReceived: string, | ||
) { | ||
cy.get('[data-testid="case-detail-menu-button"]').click(); | ||
cy.get('[data-testid="menu-button-add-paper-filing"]').click(); | ||
cy.get( | ||
'.usa-date-picker__wrapper > [data-testid="date-received-picker"]', | ||
).type(dateReceived); | ||
selectTypeaheadInput('primary-document-type-search', documentType); | ||
cy.get('[data-testid="filed-by-option"]').click(); | ||
cy.get('[data-testid="objections-No"]').click(); | ||
cy.get('[data-testid="upload-pdf-button"]').click(); | ||
|
||
attachFile({ | ||
filePath: '../../helpers/file/sample.pdf', | ||
selector: 'input#primaryDocumentFile-file', | ||
selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', | ||
}); | ||
export function createAndServePaperFiling({ | ||
dateReceived, | ||
documentType, | ||
isPaperCase = true, | ||
}: { | ||
documentType: string; | ||
dateReceived: string; | ||
isPaperCase?: boolean; | ||
}) { | ||
fillPaperFilingForm({ dateReceived, documentType }); | ||
|
||
cy.get('[data-testid="save-and-serve"]').click(); | ||
cy.get('[data-testid="modal-button-confirm"]').click(); | ||
cy.get('[data-testid="print-paper-service-done-button"]').click(); | ||
if (isPaperCase) | ||
cy.get('[data-testid="print-paper-service-done-button"]').click(); | ||
} |
26 changes: 26 additions & 0 deletions
26
cypress/helpers/caseDetail/docketRecord/paperFiling/fill-paper-filing-form.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,26 @@ | ||
import { attachFile } from '../../../file/upload-file'; | ||
import { selectTypeaheadInput } from '../../../components/typeAhead/select-typeahead-input'; | ||
|
||
export function fillPaperFilingForm({ | ||
dateReceived, | ||
documentType, | ||
}: { | ||
documentType: string; | ||
dateReceived: string; | ||
}) { | ||
cy.get('[data-testid="case-detail-menu-button"]').click(); | ||
cy.get('[data-testid="menu-button-add-paper-filing"]').click(); | ||
cy.get( | ||
'.usa-date-picker__wrapper > [data-testid="date-received-picker"]', | ||
).type(dateReceived); | ||
selectTypeaheadInput('primary-document-type-search', documentType); | ||
cy.get('[data-testid="filed-by-option"]').click(); | ||
cy.get('[data-testid="objections-No"]').click(); | ||
cy.get('[data-testid="upload-pdf-button"]').click(); | ||
|
||
attachFile({ | ||
filePath: '../../helpers/file/sample.pdf', | ||
selector: 'input#primaryDocumentFile-file', | ||
selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', | ||
}); | ||
} |
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
12 changes: 12 additions & 0 deletions
12
cypress/local-only/tests/accessibility/public/trialSessions/trial-sessions-table.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,12 @@ | ||
import { checkA11y } from '../../../../support/generalCommands/checkA11y'; | ||
|
||
describe('Trial Sessions - Public Accessibility', () => { | ||
beforeEach(() => { | ||
Cypress.session.clearCurrentSessionData(); | ||
}); | ||
|
||
it('should be free of a11y issues', () => { | ||
cy.visit('/trial-sessions'); | ||
checkA11y(); | ||
}); | ||
}); |
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.