Checkout Flow Test Suite
Comprehensive testing for add-to-cart, login, and checkout functionality
Test Controls
Testing Instructions
Before Running Tests:
- Make sure you have at least one product in your cart
- Log in with a test account (or stay logged out to test guest flow)
- Ensure PayPal credentials are set in environment variables
PayPal Test Mode:
- Use PayPal Sandbox account for testing
- PAYPAL_MODE should be set to "sandbox" (not "live")
- Get sandbox credentials from: developer.paypal.com
What This Tests:
- ✓ User authentication status
- ✓ Cart item retrieval (guest & logged-in)
- ✓ Product catalog access
- ✓ PayPal API integration
- ✓ Order structure validation
💡 Pro Tip: After running tests, check the browser console (F12) for additional debug logs. PayPal test cards: Use sandbox buyer accounts from developer.paypal.com/dashboard