TEST TYPE: dashboard_functional Based on the task description provided, here are 10 relevant and high-quality dashboard_functional test cases for the Tweak in coupon feature to manage discount in Stripe subscription: 1. Title: TC_FUNC_001_Verify_Coupon_Addition Scenario: Verify that a user can successfully add a coupon code to a Stripe subscription. Preconditions: User is logged in and has a valid Stripe subscription. Steps to Reproduce: 1. Navigate to the subscription management section. 2. Click on the option to add a coupon code. 3. Enter a valid coupon code. Expected Result: The coupon code is applied successfully, and the subscription price reflects the discount. Actual Result: To be filled during execution Priority: High Test Data: Valid coupon code 2. Title: TC_FUNC_002_Verify_Invalid_Coupon_Rejection Scenario: Ensure that an invalid coupon code is rejected during the subscription process. Preconditions: User is logged in and has a valid Stripe subscription. Steps to Reproduce: 1. Navigate to the subscription management section. 2. Attempt to apply an invalid coupon code. Expected Result: The system displays an error message indicating that the coupon code is invalid. Actual Result: To be filled during execution Priority: High Test Data: Invalid coupon code 3. Title: TC_FUNC_003_Verify_Coupon_Expiry Scenario: Test if a coupon with an expiry date correctly stops providing a discount after expiry. Preconditions: User is logged in and has a valid Stripe subscription with an applied coupon. Steps to Reproduce: 1. Wait for the coupon to reach its expiry date. 2. Check the subscription pricing. Expected Result: The subscription no longer reflects the discount after the coupon expiry date. Actual Result: To be filled during execution Priority: Medium Test Data: Coupon with expiry date 4. Title: TC_FUNC_004_Verify_Multiple_Coupons Scenario: Verify the system behavior when multiple coupons are applied to a single subscription. Preconditions: User is logged in and has a valid Stripe subscription. Steps to Reproduce: 1. Apply multiple valid coupon codes to the subscription. Expected Result: System should apply only one coupon with the highest discount, ignoring others. Actual Result: To be filled during execution Priority: Medium Test Data: Multiple valid coupon codes 5. Title: TC_FUNC_005_Verify_Coupon_Stacking Scenario: Test if the system allows stacking of multiple coupons on a single subscription. Preconditions: User is logged in and has a valid Stripe subscription. Steps to Reproduce: 1. Apply multiple valid coupons to the subscription. Expected Result: All applied coupons should be considered, and the discounts should stack. Actual Result: To be filled during execution Priority: Medium Test Data: Multiple valid coupon codes 6. Title: TC_FUNC_006_Verify_Coupon_Limitations Scenario: Validate the system's behavior when a coupon has usage limitations. Preconditions: User is logged in and has a valid Stripe subscription. Steps to Reproduce: 1. Apply a coupon with usage limitations (e.g., one-time use). 2. Try to reuse the coupon after it has been used. Expected Result: System should not apply the coupon again once it reaches its usage limit. Actual Result: To be filled during execution Priority: Medium Test Data: Coupon with usage limitations 7. Title: TC_FUNC_007_Verify_Coupon_Invalidation Scenario: Test the system's response when a coupon is invalidated or disabled. Preconditions: User is logged in and has a valid Stripe subscription with an applied coupon. Steps to Reproduce: 1. Invalidate or disable the applied coupon. 2. Check the subscription pricing. Expected Result: The discount should be removed, and the subscription pricing should reflect the change. Actual Result: To be filled during execution Priority: High Test Data: Disabled coupon code 8. Title: TC_FUNC_008_Verify_Coupon_Validation Scenario: Validate that the system verifies the authenticity of a coupon code before applying it. Preconditions: User is logged in and has a valid Stripe subscription. Steps to Reproduce: 1. Attempt to apply a fake or non-existent coupon code. Expected Result: System should reject the fake coupon code and display an appropriate error message. Actual Result: To be filled during execution Priority: High Test Data: Fake or non-existent coupon code 9. Title: TC_FUNC_009_Verify_Coupon_Refresh Scenario: Test if the system updates the subscription pricing immediately after applying a coupon. Preconditions: User is logged in and has a valid Stripe subscription. Steps to Reproduce: 1. Apply a valid coupon code to the subscription. 2. Check the subscription pricing. Expected Result: The subscription pricing should reflect the discount without requiring a page refresh. Actual Result: To be filled during execution Priority: Medium Test Data: Valid coupon code 10. Title: TC_FUNC_010_Verify_Coupon_Removing Scenario: Verify that a user can remove a previously applied coupon from the subscription. Preconditions: User is logged in and has a valid Stripe subscription with an applied coupon. Steps to Reproduce: 1. Navigate to the subscription management section. 2. Remove the applied coupon from the subscription. Expected Result: The discount from the removed coupon should no longer reflect on the subscription pricing. Actual Result: To be filled during execution Priority: High Test Data: Applied coupon code These test cases cover a range of scenarios related to managing discounts in Stripe subscriptions using coupon codes.