Skip to content

Commit

Permalink
split the export test
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 committed Sep 23, 2024
1 parent 70f5ea7 commit f6032b0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cypress/e2e/facility_spec/FacilityHomepage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,31 +91,31 @@ describe("Facility Homepage Function", () => {
});

it("Verify Facility Export Functionality", () => {
// Download the Facilities CSV
facilityHome.csvDownloadIntercept(facilitiesAlias, "");
facilityHome.clickExportButton();
facilityHome.clickMenuItem("Facilities");
facilityHome.verifyDownload(facilitiesAlias);
facilityHome.clickSearchButton();
// to avoid flaky test, as sometimes, the test is unable to focus on the object
// Download the Capacities CSV
});

it("Verify Capacity Export Functionality", () => {
facilityHome.csvDownloadIntercept(capacitiesAlias, "&capacity");
facilityHome.clickExportButton();
facilityHome.clickMenuItem("Capacities");
facilityHome.verifyDownload(capacitiesAlias);
facilityHome.clickSearchButton();
// Download the Doctors CSV
});

it("Verify Doctor Export Functionality", () => {
facilityHome.csvDownloadIntercept(doctorsAlias, "&doctors");
facilityHome.clickExportButton();
facilityHome.clickMenuItem("Doctors");
facilityHome.verifyDownload(doctorsAlias);
facilityHome.clickSearchButton();
// Download the Triages CSV
});

it("Verify Triage Export Functionality", () => {
facilityHome.csvDownloadIntercept(triagesAlias, "&triage");
facilityHome.clickExportButton();
facilityHome.clickMenuItem("Triages");
facilityHome.verifyDownload(triagesAlias);
facilityHome.clickSearchButton();
});

it("Verify Facility Detail page redirection to CNS and Live Minitoring ", () => {
Expand Down

0 comments on commit f6032b0

Please sign in to comment.