Skip to content

Commit

Permalink
eliminating post verification and pinpointing the error
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 committed Sep 23, 2024
1 parent 14e12e3 commit 98ba182
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cypress/e2e/facility_spec/FacilityHomepage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ", () => {
Expand Down

0 comments on commit 98ba182

Please sign in to comment.