-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed as not planned
Description
Description
Add a test case to verify system behavior when attempting checkout without a username in the session. This is an edge case that should be handled gracefully by the system.
Test Scenario
- Access the checkout flow directly without logging in
- Attempt to complete checkout without user session
- Verify appropriate error handling and user redirection
Acceptance Criteria
- Test verifies that checkout cannot proceed without a username
- Test confirms user is redirected to login page
- Test validates appropriate error message is displayed
- Test ensures cart contents are preserved after login redirect
- Test follows existing test structure and uses Page Object Model
Additional Context
- This test case will help improve system security and user experience
- Should be added to the existing suite of checkout tests
- Will help prevent unauthorized access to checkout functionality
Implementation Notes
- Use TestNG data provider pattern consistent with existing tests
- Implement in
CheckoutTest.javausing Page Object Model - Add appropriate test data in TestData.xlsx
- Follow existing error handling and logging patterns
Priority
Medium
Metadata
Metadata
Assignees
Labels
No labels