Skip to content

Commit

Permalink
adjust test with the date format of the platform
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 committed Oct 12, 2024
1 parent c514fe1 commit db19afc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cypress/e2e/patient_spec/PatientHomepage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ describe("Patient Homepage present functionalities", () => {
const facilityDistrict = "Ernakulam";
const patientBeforeDate = "01122023";
const patientAfterDate = "07122023";
const patientBeforeDateBadge = "2023-12-01";
const patientAfterDateBadge = "2023-12-07";

before(() => {
loginPage.loginAsDisctrictAdmin();
Expand All @@ -43,12 +45,12 @@ describe("Patient Homepage present functionalities", () => {
patientHome.clickPatientFilterApply();
patientHome.verifyTotalPatientCount("1");
// verify the badge and clear the count
patientHome.verifyPatientCreatedBeforeDate(patientBeforeDate);
patientHome.verifyPatientCreatedAfterDate(patientAfterDate);
patientHome.verifyPatientModifiedBeforeDate(patientBeforeDate);
patientHome.verifyPatientModifiedAfterDate(patientAfterDate);
patientHome.verifyPatientAdmittedBeforeDate(patientBeforeDate);
patientHome.verifyPatientAdmittedAfterDate(patientAfterDate);
patientHome.verifyPatientCreatedBeforeDate(patientBeforeDateBadge);
patientHome.verifyPatientCreatedAfterDate(patientAfterDateBadge);
patientHome.verifyPatientModifiedBeforeDate(patientBeforeDateBadge);
patientHome.verifyPatientModifiedAfterDate(patientAfterDateBadge);
patientHome.verifyPatientAdmittedBeforeDate(patientBeforeDateBadge);
patientHome.verifyPatientAdmittedAfterDate(patientAfterDateBadge);
cy.clearAllFilters();
patientHome.verifyTotalPatientCount("1");
});
Expand Down

0 comments on commit db19afc

Please sign in to comment.