diff --git a/backend/cypress/e2e/federal-awards.cy.js b/backend/cypress/e2e/federal-awards.cy.js index c6b702a8db..9531124fac 100644 --- a/backend/cypress/e2e/federal-awards.cy.js +++ b/backend/cypress/e2e/federal-awards.cy.js @@ -16,7 +16,7 @@ describe('Federal awards page', () => { fixture: 'success-res.json', }).as('uploadSuccess') cy.visit(`report_submission/federal-awards/${reportTestId}`); - cy.get('#file-input-federal-awards-xlsx').attachFile('federal-awards-expended-UPDATE.xlsx'); + cy.get('#file-input-federal-awards-xlsx').attachFile('federal-awards-expended-PASS.xlsx'); cy.wait('@uploadSuccess').its('response.statusCode').should('eq', 200) cy.wait(2000).get('#info_box').should('have.text', 'File successfully validated! Your work has been saved.'); cy.get('#continue').click(); diff --git a/backend/cypress/e2e/ready-for-cert.cy.js b/backend/cypress/e2e/ready-for-cert.cy.js new file mode 100644 index 0000000000..c80e43e8b3 --- /dev/null +++ b/backend/cypress/e2e/ready-for-cert.cy.js @@ -0,0 +1,25 @@ + +describe('Ready for SF-SAC Certification', () => { + //replace with your own report ID + const reportTestId = '2023MAY0001000001' + + before(() => { + cy.visit(`/audit/submission-progress/${reportTestId}`); + }); + + it('Page loads successfully', () => { + cy.url().should('include', `/audit/submission-progress/${reportTestId}`); + }); + + it('clicks Ready for SF-SAC Certification button', () => { + cy.visit(`/audit/submission-progress/${reportTestId}`); + cy.get('[href="/audit/ready-for-certification/2023MAY0001000001"] > .usa-button').click(); + cy.url().should('include', `/audit/ready-for-certification/${reportTestId}`); + }); + + it('clicks Submit for Certification', () => { + cy.visit(`/audit/ready-for-certification/${reportTestId}`); + cy.get('#continue').click(); + }) + +}); \ No newline at end of file diff --git a/backend/cypress/e2e/workbook-uploads.cy.js b/backend/cypress/e2e/workbook-uploads.cy.js index 0b420b3f60..d35e97ace2 100644 --- a/backend/cypress/e2e/workbook-uploads.cy.js +++ b/backend/cypress/e2e/workbook-uploads.cy.js @@ -10,7 +10,7 @@ describe('Workbook upload successful', () => { fixture: 'success-res.json', }).as('uploadSuccess') cy.visit(`report_submission/federal-awards/${reportTestId}`); - cy.get('#file-input-federal-awards-xlsx').attachFile('federal-awards-expended-UPDATE.xlsx'); + cy.get('#file-input-federal-awards-xlsx').attachFile('federal-awards-expended-PASS.xlsx'); cy.wait('@uploadSuccess').its('response.statusCode').should('eq', 200) cy.wait(2000).get('#info_box').should('have.text', 'File successfully validated! Your work has been saved.'); cy.get('#continue').click(); diff --git a/backend/cypress/fixtures/federal-awards-expended-PASS.xlsx b/backend/cypress/fixtures/federal-awards-expended-PASS.xlsx new file mode 100644 index 0000000000..ac8ad8d474 Binary files /dev/null and b/backend/cypress/fixtures/federal-awards-expended-PASS.xlsx differ diff --git a/backend/cypress/fixtures/federal-awards-expended-UPDATE.xlsx b/backend/cypress/fixtures/federal-awards-expended-UPDATE.xlsx deleted file mode 100644 index 7bae33df47..0000000000 Binary files a/backend/cypress/fixtures/federal-awards-expended-UPDATE.xlsx and /dev/null differ