Skip to content

Commit

Permalink
: (
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker committed Sep 12, 2024
1 parent c21d6b8 commit 8ab2fc3
Show file tree
Hide file tree
Showing 3 changed files with 287 additions and 285 deletions.
12 changes: 5 additions & 7 deletions cypress/e2e/patient_spec/patient_registration.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ const getRelativeDateString = (deltaDays = 0) => {
if (deltaDays) {
date.setDate(date.getDate() + deltaDays);
}
return date
.toLocaleDateString("en-IN", {
day: "2-digit",
month: "2-digit",
year: "numeric",
})
.replace("/", "");
return date.toLocaleDateString("en-IN", {
day: "2-digit",
month: "2-digit",
year: "numeric",
});
};

describe("Patient Creation with consultation", () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/users_spec/user_creation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ describe("User Creation", () => {
userCreationPage.typeIntoElementById("password", "Test@123");
userCreationPage.selectHomeFacility("Dummy Shifting Center");
userCreationPage.typeIntoElementById("phone_number", phone_number);
userCreationPage.setInputDate("date_of_birth", "date-input", "25081999");
userCreationPage.setInputDate("date_of_birth", "date-input", "25/08/1999");
userCreationPage.selectDropdownOption("user_type", "Doctor");
userCreationPage.typeIntoElementById("c_password", "Test@123");
userCreationPage.typeIntoElementById("doctor_qualification", "MBBS");
Expand Down
Loading

0 comments on commit 8ab2fc3

Please sign in to comment.