Skip to content

Commit

Permalink
fixed the cypress failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 committed Jan 16, 2025
1 parent 8d1f0c8 commit 060f3e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions cypress/e2e/patient_spec/patient_creation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ describe("Patient Management", () => {
dateOfBirth: "01-01-1990",
address: generateAddress(),
pincode: "682001",
state: "Kerala",
district: "Ernakulam",
localBody: "Aluva",
ward: "4",
};
Expand Down
14 changes: 0 additions & 14 deletions cypress/pageObject/Patients/PatientCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ interface PatientFormData {
bloodGroup: string;
address: string;
pincode: string;
state: string;
district: string;
localBody: string;
ward: string;
}
Expand Down Expand Up @@ -106,22 +104,10 @@ export class PatientCreation {
.enterDateOfBirth(patient.dateOfBirth)
.enterAddress(patient.address)
.enterPincode(patient.pincode)
.selectState(patient.state)
.selectDistrict(patient.district)
.selectLocalBody(patient.localBody)
.selectWard(patient.ward);
}

selectState(state: string) {
cy.typeAndSelectOption('[data-cy="select-state"]', state);
return this;
}

selectDistrict(district: string) {
cy.typeAndSelectOption('[data-cy="select-district"]', district);
return this;
}

selectLocalBody(localBody: string) {
cy.typeAndSelectOption('[data-cy="select-local_body"]', localBody);
return this;
Expand Down

0 comments on commit 060f3e3

Please sign in to comment.