@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.057
And
the user is logged into the CRM as "Super Admin"
00:00:08.912
And
the user is on the Leads screen
00:00:11.486
And
the user navigate to the Lead Details screen
00:00:02.770
And
I click on Profile Tab
00:00:00.022
When
I go to Basic Information Section
00:00:00.060
When
I update the personal information with:
00:00:05.185
| Date of Birth | 05/12/2001 |
|---|---|
| Preferred Language | Telugu (తెలుగు) |
| Gender | Female |
And
I update the contact information with:
00:00:00.075
| Alternate Number |
|---|
And
I update the body information with:
00:00:00.932
| 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.530
| Address | Bharathi Street Vellakinar |
|---|---|
| City | Coimbatore |
| Country | Egypt |
| Pincode | 641008 |
And
I update the timing details with:
00:00:02.355
| 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.891
| 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.307
And
I should see a confirmation message "Form successfully saved"
00:00:01.198
And
all the updated values should be displayed correctly in the Basic Information screen
00:00:08.296
Given
a lead is already created in the system
00:00:03.954
And
the user is logged into the CRM as "Super Admin"
00:00:08.878
And
the user is on the Leads screen
00:00:13.179
And
the user navigate to the Lead Details screen
00:00:02.535
And
I click on Profile Tab
00:00:00.018
When
I go to Diet Preference Section
00:00:00.698
When
I update the Diet Preference details with:
00:00:09.211
| 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.851
And
all the updated values should be displayed correctly in the Diet Preference screen
00:00:00.096
Given
a lead is already created in the system
00:00:03.820
And
the user is logged into the CRM as "Super Admin"
00:00:08.656
And
the user is on the Leads screen
00:00:09.864
And
the user navigate to the Lead Details screen
00:00:02.733
And
I click on Profile Tab
00:00:00.024
When
I go to Workout Preference Section
00:00:00.683
When
I update the Workout Preference details:
00:00:04.482
| 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.841
And
all the updated values should be displayed correctly in the Workout Preference screen
00:00:00.051
Given
a lead is already created in the system
00:00:03.808
And
the user is logged into the CRM as "Super Admin"
00:00:08.560
And
the user is on the Leads screen
00:00:13.192
And
the user navigate to the Lead Details screen
00:00:02.495
And
I click on Profile Tab
00:00:00.027
When
I go to Medical Assessment Section
00:00:00.653
When
I update the Medical Assessment details:
00:00:04.683
| 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.851
And
all the updated values should be displayed correctly in the Medical Assessment screen
00:00:00.076
@regression
@run
Scenario: Update and save Sleep, Stress & Energy information
Given
a lead is already created in the system
00:00:03.939
And
the user is logged into the CRM as "Super Admin"
00:00:06.693
And
the user is on the Leads screen
00:00:12.998
And
the user navigate to the Lead Details screen
00:00:02.707
And
I click on Profile Tab
00:00:00.023
When
I go to Sleep, Stress, Energy Section
00:00:00.648
When
I update the Sleep Stress Energy details:
00:00:04.680
| 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.816
And
all the updated values should be displayed correctly in the Sleep, Stress, Energy screen
00:00:00.039
Given
a lead is already created in the system
00:00:03.778
And
the user is logged into the CRM as "Super Admin"
00:00:09.182
And
the user is on the Leads screen
00:00:10.226
And
the user navigate to the Lead Details screen
00:00:02.553
And
I click on Profile Tab
00:00:00.030
When
I go to Sleep, Female Information Section
00:00:00.661
When
I update the Female Information details:
00:00:03.056
| 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.807
And
all the updated values should be displayed correctly in the Female Information screen
00:00:00.079
Given
a lead is already created in the system
00:00:03.933
And
the user is logged into the CRM as "Super Admin"
00:00:06.636
And
the user is on the Leads screen
00:00:10.267
And
the user navigate to the Lead Details screen
00:00:02.412
And
I click on Profile Tab
00:00:00.018
When
I go to Sleep, Emotional Health Section
00:00:00.675
When
I update the Emotional Health details:
00:00:01.417
| What affects your Emotional Health | Trauma |
|---|
And
I should see a confirmation message "Form successfully saved"
00:00:01.837
And
all the updated values should be displayed correctly in the Emotional Health screen
00:00:00.059