@regression
Feature: Program Task Various Actions
File name: taskautomation_suite_3.feature
Relative path: feature/taskautomation_suite_3.feature
Given
a lead exists in the system
00:00:07.693
And
the user is logged into the CRM as "Super Admin"
00:00:10.400
And
the user is on the Leads screen
00:00:14.167
And
Adding Mandatory Details for Payment with :
00:00:26.153
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
And
the program "Gold Elite - Automation" for "90 day" of "₹ 3000.00 Rupees" with Start Date Today is assigned to the lead with
00:00:23.665
And
the payment is successfully completed via "UPI"
00:00:16.713
And
the lead appears in the client list
00:00:04.526
And
coaches "Meera(VMC001) as Fitness" and "Tuhinangshu(VME0017) as Nutrition" are auto allocated through workflow
00:00:19.317
And
the coach allocation and task generation entries are visible in the History tab after workflow triggered
00:00:08.676
Then
all program tasks are created immediately within the program tenure
00:00:02.490
And
the tasks are assigned to the respective allocated coaches
00:00:01.614
When
the user marks the task as complete
00:00:06.377
Then
the task status should be updated to Completed
00:00:12.043
Given
a lead exists in the system
00:00:04.395
And
the user is logged into the CRM as "Super Admin"
00:00:08.770
And
the user is on the Leads screen
00:00:13.475
And
Adding Mandatory Details for Payment with :
00:00:26.228
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
And
the program "Gold Elite - Automation" for "90 day" of "₹ 3000.00 Rupees" with Start Date Today is assigned to the lead with
00:00:24.954
And
the payment is successfully completed via "UPI"
00:00:16.159
And
the lead appears in the client list
00:00:05.387
And
coaches "Meera(VMC001) as Fitness" and "Tuhinangshu(VME0017) as Nutrition" are auto allocated through workflow
00:00:18.052
And
the coach allocation and task generation entries are visible in the History tab after workflow triggered
00:00:08.429
Then
all program tasks are created immediately within the program tenure
00:00:02.587
And
the tasks are assigned to the respective allocated coaches
00:00:01.532
When
the user initiates a WhatsApp message for the task
00:00:00.988
Then
the WhatsApp message interface should open
00:00:00.216
Given
a lead exists in the system
00:00:04.121
And
the user is logged into the CRM as "Super Admin"
00:00:08.660
And
the user is on the Leads screen
00:00:12.120
And
Adding Mandatory Details for Payment with :
00:00:26.023
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
And
the program "Gold Elite - Automation" for "90 day" of "₹ 3000.00 Rupees" with Start Date Today is assigned to the lead with
00:00:22.980
And
the payment is successfully completed via "UPI"
00:00:16.746
And
the lead appears in the client list
00:00:04.197
And
coaches "Meera(VMC001) as Fitness" and "Tuhinangshu(VME0017) as Nutrition" are auto allocated through workflow
00:00:18.751
And
the coach allocation and task generation entries are visible in the History tab after workflow triggered
00:00:08.293
Then
all program tasks are created immediately within the program tenure
00:00:02.596
And
the tasks are assigned to the respective allocated coaches
00:00:01.502
When
the user reschedules the task to a new date
00:00:07.853
Then
the task date should be updated to the new date
00:00:12.401
Given
a lead exists in the system
00:00:04.356
And
the user is logged into the CRM as "Super Admin"
00:00:08.896
And
the user is on the Leads screen
00:00:12.205
And
Adding Mandatory Details for Payment with :
00:00:26.086
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
And
the program "Gold Elite - Automation" for "90 day" of "₹ 3000.00 Rupees" with Start Date Today is assigned to the lead with
00:00:23.749
And
the payment is successfully completed via "UPI"
00:00:16.799
And
the lead appears in the client list
00:00:04.383
And
coaches "Meera(VMC001) as Fitness" and "Tuhinangshu(VME0017) as Nutrition" are auto allocated through workflow
00:00:18.858
And
the coach allocation and task generation entries are visible in the History tab after workflow triggered
00:00:10.112
Then
all program tasks are created immediately within the program tenure
00:00:02.567
And
the tasks are assigned to the respective allocated coaches
00:00:01.511
When
the user initiates a call for the task
00:00:00.522
Error: expect(locator).toBeVisible() failed
Locator: getByText('Plivo is ready! You can now make a call.', { exact: true })
Expected: visible
Timeout: 30000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 30000ms
- waiting for getByText('Plivo is ready! You can now make a call.', { exact: true })
at ../tests/ui_test/page/LeadInteractionPage.js:693
691 | //Validate Plivo Ready Toast
692 | async validatePlivoReadyToast() {
) 693 | await expect(this.plivoReadyToast).toBeVisible();
| ^
694 | }
695 |
696 | //Click on Call
And
the call interaction should be saved after completion
0s
| Call Category | Input call |
|---|---|
| Call Type | Outbound |
| Disposition | Not Connected |
| Sub Disposition | Line Busy |
| Stage | Cold |
| Call Status | Coach Terminated |
| Duration | 00:00:00 |
| Notes | Called from Task Table |
And
the call details should be saved in interaction
0s
Given
a lead exists in the system
00:00:04.355
And
the user is logged into the CRM as "Super Admin"
00:00:09.078
And
the user is on the Leads screen
00:00:13.982
And
Adding Mandatory Details for Payment with :
00:00:26.450
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
And
the program "Gold Elite - Automation" for "90 day" of "₹ 3000.00 Rupees" with Start Date Today is assigned to the lead with
00:00:23.944
And
the payment is successfully completed via "UPI"
00:00:15.609
And
the lead appears in the client list
00:00:04.628
And
coaches "Meera(VMC001) as Fitness" and "Tuhinangshu(VME0017) as Nutrition" are auto allocated through workflow
00:00:18.155
And
the coach allocation and task generation entries are visible in the History tab after workflow triggered
00:00:08.285
Then
all program tasks are created immediately within the program tenure
00:00:02.623
And
the tasks are assigned to the respective allocated coaches
00:00:01.658
When
the user marks the task as No Response
00:00:06.564
Then
the task status should be updated to No Response
00:00:11.972
Given
a lead exists in the system
00:00:04.093
And
the user is logged into the CRM as "Super Admin"
00:00:08.806
And
the user is on the Leads screen
00:00:12.289
And
Adding Mandatory Details for Payment with :
00:00:26.288
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
And
the program "Gold Elite - Automation" for "90 day" of "₹ 3000.00 Rupees" with Start Date Today is assigned to the lead with
00:00:23.773
And
the payment is successfully completed via "UPI"
00:00:15.835
And
the lead appears in the client list
00:00:04.312
And
coaches "Meera(VMC001) as Fitness" and "Tuhinangshu(VME0017) as Nutrition" are auto allocated through workflow
00:00:17.954
And
the coach allocation and task generation entries are visible in the History tab after workflow triggered
00:00:08.350
Then
all program tasks are created immediately within the program tenure
00:00:03.191
And
the tasks are assigned to the respective allocated coaches
00:00:01.541
When
the user cancels the task
00:00:06.462
Then
the task status should be updated to Cancelled
00:00:09.969