Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobjeevan committed Dec 10, 2024
1 parent 3fa1e76 commit 7359cc1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions cypress/e2e/users_spec/UsersCreation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe("User Creation", () => {
"Please enter valid phone number",
"Please enter the username",
"Please enter date in DD/MM/YYYY format",
"Please enter the password",
"Password is required",
"Confirm password is required",
"First Name is required",
"Last Name is required",
Expand Down Expand Up @@ -164,13 +164,10 @@ describe("User Creation", () => {
cy.verifyNotification("User added successfully");
userPage.typeInSearchInput(username);
userPage.checkUsernameText(username);
cy.verifyContentPresence("#name", [newUserFirstName]);
cy.verifyContentPresence(`#name-${username}`, [newUserFirstName]);
cy.verifyContentPresence("#role", [role]);
cy.verifyContentPresence("#district", [district]);
cy.verifyContentPresence("#home_facility", [homeFacility]);
cy.verifyContentPresence("#qualification", [qualification]);
cy.verifyContentPresence("#doctor-experience", [experience]);
cy.verifyContentPresence("#medical-council-registration", [regNo]);
cy.verifyContentPresence("#home-facility", [homeFacility]);
});

it("create new user form throwing mandatory field error", () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/pageobject/Users/UserCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ export class UserCreationPage {
}

clickSaveUserButton() {
cy.clickSubmitButton("Save User");
cy.clickSubmitButton("Submit");
}
}
2 changes: 1 addition & 1 deletion public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@
"uploading": "Uploading",
"use_existing_abha_address": "Use Existing ABHA Address",
"user_add_error": "Error while adding User",
"user_added_successfully": "User Added successfully",
"user_added_successfully": "User added successfully",
"user_delete_error": "Error while deleting User",
"user_deleted_successfully": "User Deleted Successfully",
"user_details": "User Details",
Expand Down

0 comments on commit 7359cc1

Please sign in to comment.