Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ready-for-cert cy+edited fed awards+workbook #1710

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/cypress/e2e/federal-awards.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
25 changes: 25 additions & 0 deletions backend/cypress/e2e/ready-for-cert.cy.js
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to merge this through; wondering if there page wants an assertion for where it will go after the click. However, it might be that we don't know/don't have that page yet, hence why no assertion.

Original file line number Diff line number Diff line change
@@ -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();
})

});
2 changes: 1 addition & 1 deletion backend/cypress/e2e/workbook-uploads.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Binary file not shown.
Binary file not shown.