Skip to content

Commit

Permalink
Modified the Address Variable to use real data in cypress test (#9218)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 authored Nov 26, 2024
1 parent 10b562e commit b2a1448
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions cypress/e2e/patient_spec/PatientRegistration.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ describe("Patient Creation with consultation", () => {
const patientDateOfBirth = "01012001";
const patientMenstruationStartDate = getRelativeDateString(-10);
const patientDateOfDelivery = getRelativeDateString(-20);
const patientOneName = "Patient With No Consultation";
const patientOneName = "Great Napolean 14";
const patientOneGender = "Male";
const patientOneUpdatedGender = "Female";
const patientOneAddress = "Test Patient Address";
const patientOneAddress = `149/J, 3rd Block,
Aluva
Ernakulam, Kerala - 682001`;
const patientOnePincode = "682001";
const patientOneState = "Kerala";
const patientOneDistrict = "Ernakulam";
Expand Down
4 changes: 3 additions & 1 deletion cypress/pageobject/Patient/PatientPredefined.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class PatientPredefined {
patientPage.typePatientDateOfBirth("01012001");
patientPage.typePatientName("Patient With Predefined Data");
patientPage.selectPatientGender("Male");
patientPage.typePatientAddress("Test Patient Address");
patientPage.typePatientAddress(
"149/J, 3rd Block, Aluva, Ernakulam - 682001",
);
facilityPage.fillPincode("682001");
facilityPage.selectStateOnPincode("Kerala");
facilityPage.selectDistrictOnPincode("Ernakulam");
Expand Down

0 comments on commit b2a1448

Please sign in to comment.