AS A user,
I WANT TO log out of the to-do app
IN real-time
TO ensure my data is secure and prevent unauthorized access,
SO THAT I can protect my personal information.
SCENARIO: Successful Account Log Out
GIVEN I am logged into the to-do app,
WHEN I click the "Log Out" button,
AND I confirm the action,
THEN I should be redirected to the login screen
WITHIN 2 seconds
AND my session should be terminated immediately.
SCENARIO: Unsuccessful Account Log Out
GIVEN I am logged into the to-do app,
WHEN I click the "Log Out" button,
AND there is a network error preventing the action,
THEN I should receive an error message indicating that the log-out failed
WITHIN 2 seconds
AND I should remain logged into the app.
AS A user, I WANT TO log out of the to-do app IN real-time TO ensure my data is secure and prevent unauthorized access, SO THAT I can protect my personal information.
SCENARIO: Successful Account Log Out GIVEN I am logged into the to-do app, WHEN I click the "Log Out" button, AND I confirm the action, THEN I should be redirected to the login screen WITHIN 2 seconds AND my session should be terminated immediately.
SCENARIO: Unsuccessful Account Log Out GIVEN I am logged into the to-do app, WHEN I click the "Log Out" button, AND there is a network error preventing the action, THEN I should receive an error message indicating that the log-out failed WITHIN 2 seconds AND I should remain logged into the app.