@run
@regression
Feature: Lead Profile Feature
Description: As a CRM user
I want to update an existing lead’s information
So that the latest client details are saved successfully
File name: leadProfile.feature
Relative path: feature/leadProfile.feature
@run
@regression
Scenario: Update the lead with new personal, contact, body, address, timing, and social information
Given
a lead is already created in the system
00:00:03.912
And
the user is logged into the CRM as "Super Admin"
00:00:08.433
And
the user is on the Leads screen
00:00:13.561
And
the user navigate to the Lead Details screen
00:00:02.479
And
I click on Profile Tab
00:00:00.032
When
I go to Basic Information Section
00:00:00.090
When
I update the personal information with:
00:00:04.990
| Date of Birth | 05/12/2001 |
|---|---|
| Preferred Language | Telugu (తెలుగు) |
| Gender | Female |
And
I update the contact information with:
00:00:00.031
| Alternate Number |
|---|
And
I update the body information with:
00:00:00.907
| Height (cm) | 189.00 |
|---|---|
| Weight (kg) | 120.00 |
| BMI | 33.59 |
| Target Weight (kg) | 100.00 |
| Goal | Physique |
And
I update the address information with:
00:00:00.150
| Address | Bharathi Street Vellakinar |
|---|---|
| City | Coimbatore |
| Country | Egypt |
| Pincode | 641008 |
And
I update the timing details with:
00:00:02.330
| From Time | 10:30 AM |
|---|---|
| To Time | 06:15 PM |
| Best Time To Call | 10 PM to 2 AM |
And
I update the referral & social media details with:
00:00:00.762
| Instagram Id | test instagram |
|---|---|
| Facebook Link/Id | test factbook |
| Source | FitMom IOS |
| Profession | IT - Software Quality Analist |
And
I click on "Save Changes"
00:00:01.388
And
I should see a confirmation message "Form successfully saved"
00:00:01.144
And
all the updated values should be displayed correctly in the Basic Information screen
00:00:09.659
Given
a lead is already created in the system
00:00:05.852
And
the user is logged into the CRM as "Super Admin"
00:00:09.516
And
the user is on the Leads screen
00:00:12.597
And
the user navigate to the Lead Details screen
00:00:02.449
And
I click on Profile Tab
00:00:00.016
When
I go to Diet Preference Section
00:00:00.788
When
I update the Diet Preference details with:
00:00:09.269
| Diet Preference | Eggitarian |
|---|---|
| Any Allergies | Eggs |
| Preferred Cuisine | South Indian |
| Food Dislikes | Fish |
| Number Of Meals | 4 |
| Meal Timings | Lunch |
| Cravings | Chocolates |
| Eat Outside Food | Cold Drinks |
| Supplement Intake | Vitamin D |
| Water Intake | 4-5 Liters |
And
I should see a confirmation message "Form successfully saved"
00:00:01.886
And
all the updated values should be displayed correctly in the Diet Preference screen
00:00:00.136
Given
a lead is already created in the system
00:00:03.883
And
the user is logged into the CRM as "Super Admin"
00:00:08.667
And
the user is on the Leads screen
00:00:12.670
And
the user navigate to the Lead Details screen
00:00:02.554
And
I click on Profile Tab
00:00:00.024
When
I go to Workout Preference Section
00:00:00.727
When
I update the Workout Preference details:
00:00:04.369
| Physical Restrictions | Back Pain |
|---|---|
| Preferred Exercise Time | Early Morning |
| Current Fitness Regime | Cardio |
| Any Challenges Faced | None |
| Workout Frequency | 2-4 Times a week |
| Workout Preference | Home |
| Key Reasons for Fitness | Weight Gain |
And
I should see a confirmation message "Form successfully saved"
00:00:01.840
And
all the updated values should be displayed correctly in the Workout Preference screen
00:00:00.052
Given
a lead is already created in the system
00:00:05.575
And
the user is logged into the CRM as "Super Admin"
00:00:08.480
And
the user is on the Leads screen
00:00:12.719
And
the user navigate to the Lead Details screen
00:00:02.523
And
I click on Profile Tab
00:00:00.018
When
I go to Medical Assessment Section
00:00:00.699
When
I update the Medical Assessment details:
00:00:04.513
| Any Medical Condition | Diabetes |
|---|---|
| Taking Medications | Vitamin Suppliment |
| Reason for Fitness | Migraine |
| Body Aches | Joint |
| Recent Health Checkup | Full Body Checkup |
| History of Surgery | Knee Replacement |
And
I should see a confirmation message "Form successfully saved"
00:00:01.829
And
all the updated values should be displayed correctly in the Medical Assessment screen
00:00:00.064
@run
@regression
Scenario: Update and save Sleep, Stress & Energy information
Given
a lead is already created in the system
00:00:03.906
And
the user is logged into the CRM as "Super Admin"
00:00:08.876
And
the user is on the Leads screen
00:00:12.708
And
the user navigate to the Lead Details screen
00:00:02.580
And
I click on Profile Tab
00:00:00.027
When
I go to Sleep, Stress, Energy Section
00:00:00.719
When
I update the Sleep Stress Energy details:
00:00:04.589
| Sleep Hours | 6 to 7 hours |
|---|---|
| Sleep Type | Good Sleep |
| Stress Level | 6 |
| Stress Reason | Work |
| Social Habits | Drinking |
| Energy Level | Low |
And
I should see a confirmation message "Form successfully saved"
00:00:01.963
And
all the updated values should be displayed correctly in the Sleep, Stress, Energy screen
00:00:00.048
Given
a lead is already created in the system
00:00:03.961
And
the user is logged into the CRM as "Super Admin"
00:00:06.532
And
the user is on the Leads screen
00:00:13.535
And
the user navigate to the Lead Details screen
00:00:02.468
And
I click on Profile Tab
00:00:00.090
When
I go to Sleep, Female Information Section
00:00:00.668
When
I update the Female Information details:
00:00:03.084
| Current Trimester | None |
|---|---|
| Postpartum | 3 months postpartum |
| Type of Delivery | Normal |
| Are you dealing with Diastases? | Yes |
| Finger Gap | 3 |
And
I should see a confirmation message "Form successfully saved"
00:00:01.885
And
all the updated values should be displayed correctly in the Female Information screen
00:00:00.070
Given
a lead is already created in the system
00:00:04.892
And
the user is logged into the CRM as "Super Admin"
00:00:06.640
And
the user is on the Leads screen
00:00:13.059
And
the user navigate to the Lead Details screen
00:00:02.439
And
I click on Profile Tab
00:00:00.015
When
I go to Sleep, Emotional Health Section
00:00:00.649
When
I update the Emotional Health details:
00:00:01.424
| What affects your Emotional Health | Trauma |
|---|
And
I should see a confirmation message "Form successfully saved"
00:00:01.789
And
all the updated values should be displayed correctly in the Emotional Health screen
00:00:00.093