As a resigtered user, I want to log out from my account, so nobody would have access to it.
Acceptance criteria:
Given: The user is logged in.
When: The user clicks the "Log Out" button.
Then: The system logs the user out and redirects them to the home page.
Given: The user is logged out.
When: The user tries to access their profile or order history page.
Then: The system redirects them to the login page, requiring them to log in again.
Given: The user is on the login page.
When: The user clicks on the "Forgot Password?" link.
Then: The system navigates the user to the password reset page, allowing them to reset their password
As a resigtered user, I want to log out from my account, so nobody would have access to it.
Acceptance criteria:
Given: The user is logged in. When: The user clicks the "Log Out" button. Then: The system logs the user out and redirects them to the home page.
Given: The user is logged out. When: The user tries to access their profile or order history page. Then: The system redirects them to the login page, requiring them to log in again.
Given: The user is on the login page. When: The user clicks on the "Forgot Password?" link. Then: The system navigates the user to the password reset page, allowing them to reset their password