diff --git a/cypress/e2e/facility_spec/FacilityHomepage.cy.ts b/cypress/e2e/facility_spec/FacilityHomepage.cy.ts index d261036291f..6b4cbfc3782 100644 --- a/cypress/e2e/facility_spec/FacilityHomepage.cy.ts +++ b/cypress/e2e/facility_spec/FacilityHomepage.cy.ts @@ -102,6 +102,7 @@ describe("Facility Homepage Function", () => { facilityHome.csvDownloadIntercept(capacitiesAlias, "&capacity"); facilityHome.clickExportButton(); facilityHome.clickMenuItem("Capacities"); + facilityHome.verifyDownload(capacitiesAlias); facilityHome.clickSearchButton(); // Download the Doctors CSV facilityHome.csvDownloadIntercept(doctorsAlias, "&doctors"); diff --git a/cypress/pageobject/Facility/FacilityHome.ts b/cypress/pageobject/Facility/FacilityHome.ts index f10834c3c63..ba8ffb77c32 100644 --- a/cypress/pageobject/Facility/FacilityHome.ts +++ b/cypress/pageobject/Facility/FacilityHome.ts @@ -91,6 +91,7 @@ class FacilityHome { verifyDownload(alias: string) { cy.wait(`@${alias}`).its("response.statusCode").should("eq", 200); + cy.wait(5000); } getURL() {