Skip to content

Commit

Permalink
Merge pull request #3520 from GSA-TTS/main
Browse files Browse the repository at this point in the history
  • Loading branch information
jadudm authored Mar 15, 2024
2 parents e5459bd + ec89a31 commit 1d2fae2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/cypress/support/full-submission.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { testAuditeeCertification } from './auditee-certification.js';
import { testReportIdFoundWithTribalAccess, testReportIdFoundWithoutTribalAccess, testReportIdNotFoundWithoutTribalAccess } from './dissemination-table.js';
import { testTribalAuditPublic, testTribalAuditPrivate } from './tribal-audit-form.js';
import { testInitializeAudit } from './initialize-audit.js';
import { testUnlock } from './unlock-cert.js';
import {
testWorkbookFederalAwards,
testWorkbookNotesToSEFA,
Expand Down Expand Up @@ -94,6 +95,9 @@ export function testFullSubmission(isTribal, isPublic) {
cy.get(".usa-link").contains("Pre-submission validation").click();
testCrossValidation();

// test unlock certification
testUnlock();

// Auditor certification
cy.get(".usa-link").contains("Auditor Certification").click();
testAuditorCertification();
Expand Down
21 changes: 21 additions & 0 deletions backend/cypress/support/unlock-cert.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { testCrossValidation } from "./cross-validation";

// test unlock certification
export function testUnlock() {
cy.url().then(url => {
const reportId = url.split('/').pop();
cy.get('.usa-button').contains('Unlock').click();
cy.get('#continue').contains('Unlock submission').click();
cy.get('img[alt="FAC.gov"]').should('exist').click();
cy.url().should('match', /\/audit\//);
cy.contains('td', `${reportId}`)
.siblings()
.contains('td', 'In Progress')
.click()
cy.url().should('match', /\/audit\/submission-progress\/[0-9]{4}-[0-9]{2}-GSAFAC-[0-9]{10}/);
cy.then(() => {
cy.get(".usa-link").contains("Pre-submission validation").click();
testCrossValidation();
});
});
}

0 comments on commit 1d2fae2

Please sign in to comment.