Generate test cases for an eCommerce checkout flow based on the following product specification: The user should be able to add items to their cart, apply a discount code, select a shipping method, and complete payment using a credit card or PayPal. The system should validate the payment and display an order confirmation page. Consider positive, negative, boundary, and security test cases.
Example Output:
β’ Verify that a user can add items to the cart successfully.
β’ Verify that a discount code is applied correctly and reflects the right amount.
β’ Verify that users can choose different shipping methods (Standard, Express).
β’ Verify that payment completes successfully using a valid credit card.
β’ Verify that an invalid credit card number is rejected.
β’ Verify that the order confirmation page displays correct details.
β’ Verify that the session times out after a period of inactivity.
β’ Verify SQL injection protection in the discount code input field.