User logout and session termination tests
The logout functionality allows authenticated users to securely end their session. This involves clearing authentication tokens, invalidating the session on the server, and redirecting to the appropriate page.
Objective: Verify that users can successfully log out using the header menu.
Precondition: User is logged in.
Objective: Verify that users can log out from their account page.
Precondition: User is logged in.
Objective: Verify that auth tokens are properly cleared from browser storage after logout.
Precondition: User is logged in.
Objective: Verify that using browser back button after logout doesn't restore the session.
Precondition: User was logged in and has just logged out.
Objective: Verify cart behavior when user logs out (based on business requirements).
Precondition: User is logged in with items in cart.
Objective: Verify logout behavior when network is unavailable.
Precondition: User is logged in.
| Environment | Storefront URL | Account Page |
|---|---|---|
| Local | http://localhost:4000 | http://localhost:4000/account |
| Development | https://dev-store.bizplaza.in | https://dev-store.bizplaza.in/account |
| Staging | https://staging-store.bizplaza.in | https://staging-store.bizplaza.in/account |