zoe92300 / TodoApp-FlutterFlow

0 stars 0 forks source link

US4 : Login #10

Open zoe92300 opened 7 hours ago

zoe92300 commented 7 hours ago

AS A user, I WANT TO log in using my email and password, TO access my to-do list, SO THAT I can manage my tasks securely across different devices.

SCENARIO: Successful Login GIVEN the user is on the login screen of the ToDo List app, WHEN the user enters a valid email and password, AND clicks the "Log In" button, THEN the user should be logged in to their account, WITHIN 2 seconds, AND redirected to the main to-do list screen WITHIN 1 second.

SCENARIO: Invalid Email or Password GIVEN the user is on the login screen of the ToDo List app, WHEN the user enters an invalid email or incorrect password, AND clicks the "Log In" button, THEN the system should display an error message stating "Invalid email or password" WITHIN 1 second, AND the user should remain on the login screen.

SCENARIO: Account Does Not Exist GIVEN the user is on the login screen of the ToDo List app, WHEN the user enters an email that is not associated with any account, AND clicks the "Log In" button, THEN the system should display an error message stating "Account does not exist" WITHIN 1 second, AND prompt the user to create a new account.

SCENARIO: Network Error During Login GIVEN the user is on the login screen of the ToDo List app, WHEN the user enters a valid email and password, AND clicks the "Log In" button, THEN if a network error occurs, the system should display an error message stating "Network error. Please try again later" WITHIN 2 seconds, AND allow the user to retry the login process once the network is stable.