@payment
@regression
@skip
Feature: Payment Management Feature - Suite 1
File name: paymentManagement_1.feature
Relative path: feature/paymentManagement_1.feature
Given
a lead exists in the system for task automation
00:00:04.046
And
the user is logged into the CRM as "Super Admin"
00:00:08.646
And
the user is on the Leads screen
00:00:09.851
And
Adding Mandatory Details for Payment with :
00:00:16.612
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "30 day" of "₹ 1500.00 Rupees" with a future start date is assigned to the lead
00:00:09.320
+ Show Error
Error: expect(received).toContain(expected) // indexOf
Expected substring: "29 May 2026"
Received string: "28 May 2026 06:30 PM"
at ../tests/ui_test/page/LeadPackagePage.js:513
511 | async validateStartDate(expectedDate) {
512 | const actualDate = await this.getStartDateFromAddedPackages();
) 513 | expect(actualDate).toContain(expectedDate);
| ^
514 | }
515 | //DONE
516 | async validateEndDate(expectedDate) {
And
the full payment for the package is made manually via "UPI"
0s
Then
the package status should be "Fully Paid"
0s
And
the payment details should be visible on the Client Payment page
0s
And
the payment details should be visible on the Global Payment page
0s
And
the lead appears in the client list
0s
Given
a lead exists in the system for task automation
00:00:04.062
And
the user is logged into the CRM as "Super Admin"
00:00:08.745
And
the user is on the Leads screen
00:00:10.513
And
Adding Mandatory Details for Payment with :
00:00:16.931
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "30 day" of "₹ 1500.00 Rupees" with a future start date is assigned to the lead
00:00:09.309
+ Show Error
Error: expect(received).toContain(expected) // indexOf
Expected substring: "29 May 2026"
Received string: "28 May 2026 06:30 PM"
at ../tests/ui_test/page/LeadPackagePage.js:513
511 | async validateStartDate(expectedDate) {
512 | const actualDate = await this.getStartDateFromAddedPackages();
) 513 | expect(actualDate).toContain(expectedDate);
| ^
514 | }
515 | //DONE
516 | async validateEndDate(expectedDate) {
And
the full payment for the package is made online via "Razorpay" i.e. via Razorpay
0s
Then
the package status should be "Fully Paid"
0s
And
the payment details should be visible on the Client Payment page after Online Payment
0s
And
the payment details should be visible on the Global Payment page
0s
And
the lead appears in the client list
0s
Given
a lead exists in the system for task automation
00:00:03.910
And
the user is logged into the CRM as "Super Admin"
00:00:08.670
And
the user is on the Leads screen
00:00:09.952
And
Adding Mandatory Details for Payment with :
00:00:16.584
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "180 day" of "₹ 5000.00 Rupees" with a future start date is assigned to the lead
00:00:09.796
+ Show Error
Error: expect(received).toContain(expected) // indexOf
Expected substring: "29 May 2026"
Received string: "28 May 2026 06:30 PM"
at ../tests/ui_test/page/LeadPackagePage.js:513
511 | async validateStartDate(expectedDate) {
512 | const actualDate = await this.getStartDateFromAddedPackages();
) 513 | expect(actualDate).toContain(expectedDate);
| ^
514 | }
515 | //DONE
516 | async validateEndDate(expectedDate) {
And
a partial payment for the package is made manually via "UPI"
0s
Then
the package status should be "Partially Paid"
0s
And
the payment details should be visible on the Client Payment page after partial payment
0s
And
the payment details should be visible on the Global Payment page after partial payment
0s
And
the lead appears in the client list
0s
Given
a lead exists in the system for task automation
00:00:04.439
And
the user is logged into the CRM as "Super Admin"
00:00:08.794
And
the user is on the Leads screen
00:00:10.062
And
Adding Mandatory Details for Payment with :
00:00:16.698
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "180 day" of "₹ 5000.00 Rupees" with a future start date is assigned to the lead
00:00:09.165
+ Show Error
Error: expect(received).toContain(expected) // indexOf
Expected substring: "29 May 2026"
Received string: "28 May 2026 06:30 PM"
at ../tests/ui_test/page/LeadPackagePage.js:513
511 | async validateStartDate(expectedDate) {
512 | const actualDate = await this.getStartDateFromAddedPackages();
) 513 | expect(actualDate).toContain(expectedDate);
| ^
514 | }
515 | //DONE
516 | async validateEndDate(expectedDate) {
And
the partial payment for the package is made online via "Razorpay" i.e. via Razorpay
0s
Then
the package status should be "Partially Paid"
0s
And
the payment details should be visible on the Client Payment page after partial payment through online payment
0s
And
the payment details should be visible on the Global Payment page after partial payment
0s
And
the lead appears in the client list
0s
@payment
@regression
@skip
Scenario: Payment Status Change flow verification
Given
a lead exists in the system for task automation
0s
And
the user is logged into the CRM as "Super Admin"
0s
And
the user is on the Leads screen
0s
And
Adding Mandatory Details for Payment with :
0s
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "30 day" of "₹ 1500.00 Rupees" with a future start date is assigned to the lead
0s
And
the full payment for the package is made manually via "UPI"
0s
Then
the package status should be "Fully Paid"
0s
And
the payment details should be visible on the Client Payment page
0s
And
the payment details should be visible on the Global Payment page
0s
And
the payment status is changed to " Payment Verified" & "Excess Amount Received"
0s
@payment
@regression
@skip
Scenario: Second & Third Installment Payment from Client Payment (Manual)
Given
a lead exists in the system for task automation
0s
And
the user is logged into the CRM as "Super Admin"
0s
And
the user is on the Leads screen
0s
And
Adding Mandatory Details for Payment with :
0s
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "180 day" of "₹ 5000.00 Rupees" with a future start date is assigned to the lead
0s
And
a partial payment for the package is made manually via "UPI"
0s
Then
the package status should be "Partially Paid"
0s
And
the payment details should be visible on the Client Payment page after partial payment
0s
And
2nd Installment is paid manually via "UPI"
0s
And
the package status should be "Partially Paid"
0s
And
3rd Installment is paid manually via "UPI"
0s
And
the package status should be "Fully Paid"
0s
And
all the payment entry should appear in Global Payment Page with total 3 entry in completed table
0s
@payment
@regression
@skip
Scenario: Second & Third Installment Payment from Client Payment (Online)
Given
a lead exists in the system for task automation
0s
And
the user is logged into the CRM as "Super Admin"
0s
And
the user is on the Leads screen
0s
And
Adding Mandatory Details for Payment with :
0s
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "180 day" of "₹ 5000.00 Rupees" with a future start date is assigned to the lead
0s
And
the partial payment for the package is made online via "Razorpay" i.e. via Razorpay
0s
Then
the package status should be "Partially Paid"
0s
And
the payment details should be visible on the Client Payment page after partial payment through online payment
0s
And
2nd Installment is paid online via "Razorpay" i.e. via Razorpay
0s
And
the package status should be "Partially Paid"
0s
And
3rd Installment is paid online via "Razorpay" i.e. via Razorpay
0s
And
the package status should be "Fully Paid"
0s
And
all the payment entry should appear in Global Payment Page with total 3 entry in completed table
0s
@payment
@regression
@skip
Scenario: Download Payment Details from Client Payment Page
Given
a lead exists in the system for task automation
0s
And
the user is logged into the CRM as "Super Admin"
0s
And
the user is on the Leads screen
0s
And
Adding Mandatory Details for Payment with :
0s
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "30 day" of "₹ 1500.00 Rupees" with a future start date is assigned to the lead
0s
And
the full payment for the package is made manually via "UPI"
0s
Then
the package status should be "Fully Paid"
0s
And
the payment details should be visible on the Client Payment page
0s
And
the payment details should be visible on the Client Payment page & it is downloadable
0s
@payment
@regression
@skip
Scenario: Global Payment Page Filter Functionality in Different Table i.e, Due & Completed
Given
a lead exists in the system for task automation
0s
And
the user is logged into the CRM as "Super Admin"
0s
And
the user is on the Leads screen
0s
And
Adding Mandatory Details for Payment with :
0s
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "180 day" of "₹ 5000.00 Rupees" with a future start date is assigned to the lead
0s
And
a partial payment for the package is made manually via "UPI"
0s
Then
the package status should be "Partially Paid"
0s
And
the payment details should be visible on the Client Payment page after partial payment
0s
And
2nd Installment is paid manually via "UPI"
0s
And
the package status should be "Partially Paid"
0s
And
on the Global Payment page, the Due table should display results when filtered by name, email, or phone number
0s
And
on the Global Payment page, the Completed table should display results when filtered by name, email, or phone number
0s
@payment
@regression
@skip
Scenario: Second & Third Installment Payment from Global Payment Page (Manual)
Given
a lead exists in the system for task automation
0s
And
the user is logged into the CRM as "Super Admin"
0s
And
the user is on the Leads screen
0s
And
Adding Mandatory Details for Payment with :
0s
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "180 day" of "₹ 5000.00 Rupees" with a future start date is assigned to the lead
0s
And
a partial payment for the package is made manually via "UPI"
0s
Then
the package status should be "Partially Paid"
0s
And
the payment details should be visible on the Client Payment page after partial payment
0s
And
2nd Installment is paid manually via "UPI" from Global Payment Page
0s
And
the package status should be "Partially Paid"
0s
And
3rd Installment is paid manually via "UPI" from Global Payment Page
0s
And
the package status should be "Fully Paid"
0s
And
all the payment entry should appear in Client Payment Page & Global Payment Page with total 3 entry in completed table
0s
@payment
@regression
@skip
Scenario: Second & Third Installment Payment from Global Payment Page (Online)
Given
a lead exists in the system for task automation
0s
And
the user is logged into the CRM as "Super Admin"
0s
And
the user is on the Leads screen
0s
And
Adding Mandatory Details for Payment with :
0s
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "180 day" of "₹ 5000.00 Rupees" with a future start date is assigned to the lead
0s
And
the partial payment for the package is made online via "Razorpay" i.e. via Razorpay
0s
Then
the package status should be "Partially Paid"
0s
And
the payment details should be visible on the Client Payment page after partial payment through online payment
0s
And
2nd Installment is paid online via "Razorpay" from Global Payment Page
0s
And
the package status should be "Partially Paid"
0s
And
3rd Installment is paid online via "Razorpay" from Global Payment Page
0s
And
the package status should be "Fully Paid"
0s
And
all the payment entry should appear in Client Payment Page & Global Payment Page with total 3 entry in completed table
0s
@payment
@regression
@skip
Scenario: Installment name increment feature, 1st installment, 2nd installment, Fully Paid Tags in Completed Payment Table
Given
a lead exists in the system for task automation
0s
And
the user is logged into the CRM as "Super Admin"
0s
And
the user is on the Leads screen
0s
And
Adding Mandatory Details for Payment with :
0s
| Best time to Call | 10 AM to 2 PM |
|---|---|
| Target Weight | 120 |
| Diet Preference | Non-Vegetarian |
| Preferred Cusine | South Indian |
| Any Medical Condition | Diabetes |
Given
the program "Gold Elite - Automation" for "180 day" of "₹ 5000.00 Rupees" with a future start date is assigned to the lead
0s
And
a partial payment for the package is made manually via "UPI"
0s
Then
the package status should be "Partially Paid"
0s
And
the payment details should be visible on the Client Payment page after partial payment
0s
And
2nd Installment is paid manually via "UPI"
0s
And
the package status should be "Partially Paid"
0s
And
3rd Installment is paid manually via "UPI"
0s
And
the package status should be "Fully Paid"
0s
And
all the payment entry should appear with incremental name, "1st Installment", "2nd Installment", "Fully Paid"
0s