Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified the Address Variable to use real-world data in cypress test #9218

Merged
merged 2 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading