From 98ba182743da91f78ec96e13240cc94be099e8ee Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Mon, 23 Sep 2024 19:53:02 +0530 Subject: [PATCH] eliminating post verification and pinpointing the error --- cypress/e2e/facility_spec/FacilityHomepage.cy.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cypress/e2e/facility_spec/FacilityHomepage.cy.ts b/cypress/e2e/facility_spec/FacilityHomepage.cy.ts index b46d11166b8..d261036291f 100644 --- a/cypress/e2e/facility_spec/FacilityHomepage.cy.ts +++ b/cypress/e2e/facility_spec/FacilityHomepage.cy.ts @@ -97,29 +97,22 @@ describe("Facility Homepage Function", () => { facilityHome.clickMenuItem("Facilities"); facilityHome.verifyDownload(facilitiesAlias); facilityHome.clickSearchButton(); - cy.wait(2000); // to avoid flaky test, as sometimes, the test is unable to focus on the object // Download the Capacities CSV facilityHome.csvDownloadIntercept(capacitiesAlias, "&capacity"); facilityHome.clickExportButton(); facilityHome.clickMenuItem("Capacities"); - facilityHome.verifyDownload(capacitiesAlias); facilityHome.clickSearchButton(); - cy.wait(2000); // Download the Doctors CSV facilityHome.csvDownloadIntercept(doctorsAlias, "&doctors"); facilityHome.clickExportButton(); facilityHome.clickMenuItem("Doctors"); - facilityHome.verifyDownload(doctorsAlias); facilityHome.clickSearchButton(); - cy.wait(2000); // Download the Triages CSV facilityHome.csvDownloadIntercept(triagesAlias, "&triage"); facilityHome.clickExportButton(); facilityHome.clickMenuItem("Triages"); - facilityHome.verifyDownload(triagesAlias); facilityHome.clickSearchButton(); - cy.wait(2000); }); it("Verify Facility Detail page redirection to CNS and Live Minitoring ", () => {