-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report PDF upload Cypress test (#1864)
Closes #1580 In this PR: Adding steps to the full-submission test to include the audit report PDF upload Removing the disabling of the upload button, since incomplete forms are already handled and it messed with the Cypress test Testing: Cypress tests should pass and PDF uploading should still work locally. --------- Co-authored-by: Phil Dominguez <“[email protected]”>
- Loading branch information
1 parent
492a7b5
commit 372aaed
Showing
4 changed files
with
24 additions
and
5 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
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
Binary file not shown.
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,16 @@ | ||
export function testPdfAuditReport() { | ||
cy.get('#financial_statements').type(1); | ||
cy.get('#financial_statements_opinion').type(1); | ||
cy.get('#schedule_expenditures').type(1); | ||
cy.get('#schedule_expenditures_opinion').type(1); | ||
cy.get('#uniform_guidance_control').type(1); | ||
cy.get('#uniform_guidance_compliance').type(1); | ||
cy.get('#GAS_control').type(1); | ||
cy.get('#GAS_compliance').type(1); | ||
cy.get('#schedule_findings').type(1); | ||
cy.get('#schedule_prior_findings').type(1); | ||
cy.get('#CAP_page').type(1); | ||
|
||
cy.get('#upload_report').selectFile('cypress/fixtures/basic.pdf'); | ||
cy.get('#continue').click(); // Performs upload and return to main page | ||
} |