forked from ohcnetwork/care_fe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix-ohcnetwork#7333
- Loading branch information
Showing
7 changed files
with
72 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ describe("User Creation", () => { | |
"Please select the User Type", | ||
"Please enter valid phone number", | ||
"Please enter the username", | ||
"Please enter date in YYYY/MM/DD format", | ||
"Please enter date in DD/MM/YYYY format", | ||
"Please enter the password", | ||
"Confirm password is required", | ||
"First Name is required", | ||
|
@@ -52,10 +52,7 @@ describe("User Creation", () => { | |
const EXPECTED_PROFILE_ERROR_MESSAGES = [ | ||
"Field is required", | ||
"Field is required", | ||
"This field is required", | ||
"Please enter valid phone number", | ||
"This field is required", | ||
"This field is required", | ||
]; | ||
|
||
before(() => { | ||
|
@@ -81,7 +78,6 @@ describe("User Creation", () => { | |
"District Editted" | ||
); | ||
userCreationPage.typeIntoElementByIdPostClear("lastName", "Cypress"); | ||
userCreationPage.typeIntoElementByIdPostClear("age", "22"); | ||
userCreationPage.selectDropdownOption("gender", "Male"); | ||
userCreationPage.typeIntoElementByIdPostClear( | ||
"phoneNumber", | ||
|
@@ -93,6 +89,10 @@ describe("User Creation", () => { | |
); | ||
userCreationPage.typeIntoElementByIdPostClear("email", "[email protected]"); | ||
userCreationPage.typeIntoElementByIdPostClear("weekly_working_hours", "14"); | ||
userCreationPage.typeIntoElementByIdPostClearDob( | ||
"date_of_birth", | ||
"01011998" | ||
); | ||
userCreationPage.clickElementById("submit"); | ||
userCreationPage.verifyElementContainsText( | ||
"contactno-profile-details", | ||
|
@@ -110,7 +110,10 @@ describe("User Creation", () => { | |
"lastname-profile-details", | ||
"Cypress" | ||
); | ||
userCreationPage.verifyElementContainsText("age-profile-details", "22"); | ||
userCreationPage.verifyElementContainsText( | ||
"date_of_birth-profile-details", | ||
"01/01/1998" | ||
); | ||
userCreationPage.verifyElementContainsText( | ||
"emailid-profile-details", | ||
"[email protected]" | ||
|
@@ -130,7 +133,6 @@ describe("User Creation", () => { | |
userCreationPage.clickElementById("edit-cancel-profile-button"); | ||
userCreationPage.clearIntoElementById("firstName"); | ||
userCreationPage.clearIntoElementById("lastName"); | ||
userCreationPage.clearIntoElementById("age"); | ||
userCreationPage.clearIntoElementById("phoneNumber"); | ||
userCreationPage.clearIntoElementById("altPhoneNumber"); | ||
userCreationPage.clearIntoElementById("weekly_working_hours"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ describe("Manage User Profile", () => { | |
const userProfilePage = new UserProfilePage(); | ||
const manageUserPage = new ManageUserPage(); | ||
|
||
const age = "30"; | ||
const date_of_birth = "01011999"; | ||
const gender = "Male"; | ||
const email = "[email protected]"; | ||
const phone = "+918899887788"; | ||
|
@@ -32,10 +32,10 @@ describe("Manage User Profile", () => { | |
cy.awaitUrl("/user/profile"); | ||
}); | ||
|
||
it("Set Age, Gender, Email, Phone and Working Hours for a user and verify its reflection in user profile", () => { | ||
it("Set Dob, Gender, Email, Phone and Working Hours for a user and verify its reflection in user profile", () => { | ||
userProfilePage.clickEditProfileButton(); | ||
|
||
userProfilePage.typeAge(age); | ||
userProfilePage.typedate_of_birth(date_of_birth); | ||
userProfilePage.selectGender(gender); | ||
userProfilePage.typeEmail(email); | ||
userProfilePage.typePhone(phone); | ||
|
@@ -49,7 +49,7 @@ describe("Manage User Profile", () => { | |
|
||
cy.verifyNotification("Details updated successfully"); | ||
|
||
userProfilePage.assertAge(age); | ||
userProfilePage.assertdate_of_birth("01/01/1999"); | ||
userProfilePage.assertGender(gender); | ||
userProfilePage.assertEmail(email); | ||
userProfilePage.assertPhone(phone); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters