-
Notifications
You must be signed in to change notification settings - Fork 7
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 #1856 from GSA-TTS/jp/cypress-workbooks-and-preval…
…idation Cypress Full Submission Fix
- Loading branch information
Showing
16 changed files
with
94 additions
and
41 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
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
Binary file added
BIN
+26.3 KB
backend/cypress/fixtures/test_workbooks/additional-ueis-workbook.xlsx
Binary file not shown.
Binary file added
BIN
+44.3 KB
backend/cypress/fixtures/test_workbooks/audit-findings-text-workbook.xlsx
Binary file not shown.
Binary file added
BIN
+44.8 KB
backend/cypress/fixtures/test_workbooks/corrective-action-plan-workbook.xlsx
Binary file not shown.
Binary file added
BIN
+223 KB
backend/cypress/fixtures/test_workbooks/federal-awards-audit-findings-workbook.xlsx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+100 KB
backend/cypress/fixtures/test_workbooks/secondary-auditors-workbook.xlsx
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,37 @@ | ||
/* | ||
Re-useable code for silling out the audit information form. | ||
*/ | ||
export function testAuditInformationForm() { | ||
// Select everything for the GAAP multiple choice checkboxes. | ||
// Will pop the three conditional non-GAAP questions. | ||
cy.get('[id^=gaap_results--]').each((item) => { | ||
cy.get(item).click({force: true}); | ||
}); | ||
|
||
// Select everything for question i | ||
cy.get('[id^=sp_framework_basis--]').each((item) => { | ||
cy.get(item).click({force: true}); | ||
}); | ||
|
||
// Question ii is a true/false, and is covered below | ||
|
||
// Select everything for question iii | ||
cy.get('[id^=sp_framework_opinions--]').each((item) => { | ||
cy.get(item).click({force: true}); | ||
}); | ||
|
||
// Answer 'Yes' to all Yes/No questions. | ||
cy.get('[id$=--true]').each((item) => { | ||
cy.get(item).click({force: true}); | ||
}); | ||
|
||
// Enter 750000 into the dollar theshold number field. | ||
cy.get('#dollar_threshold').type('750000').blur(); | ||
|
||
// Select 0 and 1 for the multiple select agencies field. | ||
cy.get('#agencies').select(['00', '01']).blur(); | ||
|
||
cy.get('.usa-button').contains('Save and continue').click({force: true}); | ||
|
||
cy.url().should('match', /\/audit\/submission-progress\/[0-9A-Z]{17}/); | ||
} |
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,8 +1,15 @@ | ||
export function testCrossValidation() { | ||
cy.url().should('match', /\/audit\/cross-validation\/[0-9A-Z]{17}/); | ||
|
||
// Cross val runs and passes | ||
cy.get(".usa-button").contains("Begin Validation").click(); | ||
cy.get('.usa-fieldset').contains('Looks good!'); | ||
cy.get('.usa-fieldset').contains('No errors were found.'); | ||
|
||
// Continue to the lock screen | ||
cy.get('.usa-button').contains('Proceed to certification').click(); | ||
cy.url().should('match', /\/audit\/ready-for-certification\/[0-9A-Z]{17}/); | ||
|
||
const reportTestId = '2023AUG0001000010'; | ||
cy.visit(`/audit/submission-progress/${reportTestId}`); | ||
// Lock the submission for the certification steps | ||
cy.get('.usa-button').contains('Lock for certification').click(); | ||
cy.url().should('match', /\/audit\/submission-progress\/[0-9A-Z]{17}/); | ||
} |
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