TEST TYPE: dashboard_functional **Test Cases for Dashboard Functional Testing:** 1. Title: TC_FUNC_01_Verify_Coupon_Section_Displayed Scenario: Verify that the coupon section is displayed on the dashboard for managing discounts in Stripe subscriptions. Steps to reproduce: 1. Log in to the dashboard. 2. Navigate to the subscription management section. Expected Result: The coupon section is visible on the dashboard. Actual Result: 2. Title: TC_FUNC_02_Add_New_Coupon_Code Scenario: Add a new coupon code for applying discounts to subscriptions. Steps to reproduce: 1. Go to the coupon section on the dashboard. 2. Click on the "Add New Coupon" button. 3. Enter the details for the new coupon code. Expected Result: The new coupon code is successfully added and displayed in the list. Actual Result: 3. Title: TC_FUNC_03_Edit_Coupon_Details Scenario: Edit the details of an existing coupon code. Steps to reproduce: 1. Find an existing coupon code on the dashboard. 2. Click on the edit button next to the coupon. 3. Modify the coupon details. Expected Result: The changes are saved successfully for the coupon code. Actual Result: 4. Title: TC_FUNC_04_Delete_Coupon_Code Scenario: Delete a coupon code from the dashboard. Steps to reproduce: 1. Locate the coupon code to be deleted. 2. Click on the delete option for the coupon. Expected Result: The selected coupon is removed from the list. Actual Result: 5. Title: TC_FUNC_05_Apply_Coupon_To_Subscription Scenario: Apply a coupon code to a subscription to avail discounts. Steps to reproduce: 1. Select a subscription that allows coupon usage. 2. Enter the coupon code in the designated field. 3. Apply the coupon. Expected Result: The subscription total reflects the discount from the coupon code. Actual Result: 6. Title: TC_FUNC_06_Verify_Coupon_Validation_Message Scenario: Verify the display of a validation message for invalid coupon codes. Steps to reproduce: 1. Try to apply an invalid coupon code to a subscription. Expected Result: A validation message appears indicating the coupon code is invalid. Actual Result: 7. Title: TC_FUNC_07_Restrict_Expired_Coupon_Use Scenario: Attempt to apply an expired coupon code to a subscription. Steps to reproduce: 1. Enter an expired coupon code during subscription checkout. Expected Result: The system prevents the use of expired coupon codes and displays an appropriate message. Actual Result: 8. Title: TC_FUNC_08_Enable_Coupon_Automatic_Application Scenario: Test the automatic application of a specific coupon code to subscriptions. Steps to reproduce: 1. Enable the automatic coupon application feature for a particular coupon code. 2. Create a new subscription eligible for this coupon. Expected Result: The coupon code is automatically applied to the subscription without manual entry. Actual Result: 9. Title: TC_FUNC_09_Check_Coupon_Usage_Limit Scenario: Verify the enforcement of a usage limit on a coupon code. Steps to reproduce: 1. Apply a coupon code to multiple subscriptions until the usage limit is reached. Expected Result: The coupon code becomes unusable after reaching the specified limit. Actual Result: 10. Title: TC_FUNC_10_Test_Coupon_Stacking Scenario: Test the stacking of multiple coupon codes on a subscription. Steps to reproduce: 1. Apply more than one valid coupon code to a subscription. Expected Result: The system stacks the discounts from multiple coupons correctly on the subscription total. Actual Result: 11. Title: TC_FUNC_11_Verify_Coupon_Report_Generation Scenario: Generate a report on coupon usage and discounts applied. Steps to reproduce: 1. Access the coupon report generation feature in the dashboard. 2. Specify the date range for the report. Expected Result: A detailed report on coupon usage and discounts is generated accurately. Actual Result: 12. Title: TC_FUNC_12_Test_Coupon_Expiry_Notification Scenario: Validate the notification system for expiring coupon codes. Steps to reproduce: 1. Set a coupon code to expire within a short duration. 2. Wait for the expiry time to pass. Expected Result: A notification is sent to the admin about the expired coupon for action. Actual Result: 13. Title: TC_FUNC_13_Test_Coupon_Restrictions Scenario: Apply a coupon code to a subscription that violates the defined restrictions. Steps to reproduce: 1. Apply a coupon code to a subscription that does not meet the specified restrictions. Expected Result: The system prevents the application of the coupon and displays the restriction message. Actual Result: 14. Title: TC_FUNC_14_Verify_Coupon_Code_Case_Sensitivity Scenario: Check the case sensitivity of coupon codes during application. Steps to reproduce: 1. Enter a coupon code with a mix of uppercase and lowercase letters. Expected Result: The system recognizes the coupon code regardless of case sensitivity. Actual Result: 15. Title: TC_FUNC_15_Test_Coupon_Code_Length_Limit Scenario: Attempt to apply a coupon code that exceeds the character length limit. Steps to reproduce: 1. Enter a coupon code longer than the permitted length. Expected Result: The system rejects the coupon code entry due to length violation. Actual Result: 16. Title: TC_FUNC_16_Verify_Coupon_Code_Unique_Requirement Scenario: Test the uniqueness requirement of coupon codes. Steps to reproduce: 1. Try to add a coupon code that duplicates an existing code. Expected Result: The system prompts an error message indicating the code must be unique. Actual Result: 17. Title: TC_FUNC_17_Test_Coupon_Code_Format_Validation Scenario: Validate the format validation for coupon codes. Steps to reproduce: 1. Enter a coupon code with special characters or spaces. Expected Result: The system rejects the coupon code entry if it does not adhere to the specified format. Actual Result: 18. Title: TC_FUNC_18_Test_Coupon_Code_Expiration_Update Scenario: Update the expiration date of an existing coupon code. Steps to reproduce: 1. Locate a coupon code with an upcoming expiry date. 2. Modify the expiration date to a future date. Expected Result: The coupon code's expiration date is successfully updated. Actual Result: 19. Title: TC_FUNC_19_Check_Coupon_Code_Usage_History Scenario: Review the usage history of a specific coupon code. Steps to reproduce: 1. Select a coupon code to view its usage history. Expected Result: The system displays a log of all instances where the coupon code was applied. Actual Result: 20. Title: TC_FUNC_20_Test_Coupon_Code_Deactivation Scenario: Deactivate a coupon code to prevent further usage. Steps to reproduce: 1. Locate an active coupon code. 2. Deactivate the coupon code from the dashboard. Expected Result: The coupon code is no longer valid for use on subscriptions. Actual Result: