@regression
@run
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
@regression
@run
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:04.387
And
the user is logged into the CRM as "Super Admin"
00:00:07.071
And
the user is on the Leads screen
00:00:12.596
And
the user navigate to the Lead Details screen
00:00:01.667
And
I click on Profile Tab
00:00:00.021
When
I go to Basic Information Section
00:00:00.064
When
I update the personal information with:
00:00:05.652
| Date of Birth | 05/12/2001 |
|---|---|
| Preferred Language | Telugu (తెలుగు) |
| Gender | Female |
And
I update the contact information with:
00:00:00.088
| Alternate Number |
|---|
And
I update the body information with:
00:00:00.988
| 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.583
| Address | Bharathi Street Vellakinar |
|---|---|
| City | Coimbatore |
| Country | Egypt |
| Pincode | 641008 |
And
I update the timing details with:
00:00:02.369
| From Time | 10:30 AM |
|---|---|
| To Time | 06:15 PM |
| Best Time To Call | 10 AM to 2 PM |
And
I update the referral & social media details with:
00:00:00.864
| 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.365
And
I should see a confirmation message "Form successfully saved"
00:00:04.889
And
all the updated values should be displayed correctly in the Basic Information screen
00:00:09.497
Given
a lead is already created in the system
00:00:04.361
And
the user is logged into the CRM as "Super Admin"
00:00:09.054
And
the user is on the Leads screen
00:00:12.892
And
the user navigate to the Lead Details screen
00:00:01.559
And
I click on Profile Tab
00:00:00.046
When
I go to Diet Preference Section
00:00:00.816
When
I update the Diet Preference details with:
00:00:09.414
| 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:04.953
And
all the updated values should be displayed correctly in the Diet Preference screen
00:00:00.097
Given
a lead is already created in the system
00:00:05.447
And
the user is logged into the CRM as "Super Admin"
00:00:08.633
And
the user is on the Leads screen
00:00:13.298
And
the user navigate to the Lead Details screen
00:00:01.574
And
I click on Profile Tab
00:00:00.027
When
I go to Workout Preference Section
00:00:00.684
When
I update the Workout Preference details:
00:00:04.617
| 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:04.960
And
all the updated values should be displayed correctly in the Workout Preference screen
00:00:00.191
Given
a lead is already created in the system
00:00:04.790
And
the user is logged into the CRM as "Super Admin"
00:00:08.910
And
the user is on the Leads screen
00:00:13.379
And
the user navigate to the Lead Details screen
00:00:01.686
And
I click on Profile Tab
00:00:00.049
When
I go to Medical Assessment Section
00:00:00.687
When
I update the Medical Assessment details:
00:00:05.412
| 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:04.949
And
all the updated values should be displayed correctly in the Medical Assessment screen
00:00:00.185
@regression
@run
Scenario: Update and save Sleep, Stress & Energy information
Given
a lead is already created in the system
00:00:04.103
And
the user is logged into the CRM as "Super Admin"
00:00:07.141
And
the user is on the Leads screen
00:00:13.023
And
the user navigate to the Lead Details screen
00:00:01.736
And
I click on Profile Tab
00:00:00.033
When
I go to Sleep, Stress, Energy Section
00:00:00.696
When
I update the Sleep Stress Energy details:
00:00:04.440
| 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:04.917
And
all the updated values should be displayed correctly in the Sleep, Stress, Energy screen
00:00:00.108
Given
a lead is already created in the system
00:00:04.323
And
the user is logged into the CRM as "Super Admin"
00:00:07.121
And
the user is on the Leads screen
00:00:13.266
And
the user navigate to the Lead Details screen
00:00:01.747
And
I click on Profile Tab
00:00:00.030
When
I go to Sleep, Female Information Section
00:00:00.700
When
I update the Female Information details:
00:00:03.177
| 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:04.930
And
all the updated values should be displayed correctly in the Female Information screen
00:00:00.065
Given
a lead is already created in the system
00:00:03.998
And
the user is logged into the CRM as "Super Admin"
00:00:07.234
And
the user is on the Leads screen
00:00:14.515
And
the user navigate to the Lead Details screen
00:00:01.590
And
I click on Profile Tab
00:00:00.042
When
I go to Sleep, Emotional Health Section
00:00:00.678
When
I update the Emotional Health details:
00:00:01.534
| What affects your Emotional Health | Trauma |
|---|
And
I should see a confirmation message "Form successfully saved"
00:00:04.895
And
all the updated values should be displayed correctly in the Emotional Health screen
00:00:00.045