mconnors55 / TodoApp-FlutterFlow

0 stars 0 forks source link

US2: Account Login #8

Open mconnors55 opened 3 weeks ago

mconnors55 commented 3 weeks ago

AS A user, I WANT TO log into my account using my email and password, TO access and manage my personal to-do list, SO THAT I can view, add, and complete tasks across multiple devices.

SCENARIO: Successful Login GIVEN the user is on the login screen of the app, WHEN the user enters a valid email address and password, AND clicks the "Login" button, THEN the system should log the user in WITHIN 3 seconds, AND redirect the user to the main to-do list screen WITHIN 2 seconds.

SCENARIO: Incorrect Password GIVEN the user is on the login screen of the app, WHEN the user enters a valid email address but an incorrect password, AND clicks the "Login" button, THEN the system should display an error message stating "Incorrect password. Please try again." WITHIN 1 second, AND allow the user to attempt logging in again.

SCENARIO: Email Not Registered GIVEN the user is on the login screen of the app, WHEN the user enters an email address that is not associated with an account, AND clicks the "Login" button, THEN the system should display an error message stating "This email is not registered. Please sign up." WITHIN 1 second, AND provide a link to the sign-up screen.

SCENARIO: Invalid Email Address Format GIVEN the user is on the login screen of the app, WHEN the user enters an email address that does not follow a valid format (e.g., "userexample.com" or "user@.com"), AND clicks the "Login" button, THEN the system should display an error message stating "Please enter a valid email address" WITHIN 1 second, AND prevent the login attempt from proceeding.

SCENARIO: Network Error During Login GIVEN the user is on the login screen of the app, WHEN the user enters a valid email address and password, AND clicks the "Login" 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 logging in once the network is stable.

SCENARIO: Forgotten Password Recovery GIVEN the user is on the login screen of the app, WHEN the user clicks the "Forgot Password" option, THEN the system should prompt the user to enter their email address WITHIN 1 second, AND send a password reset email WITHIN 30 seconds, THEN display a confirmation message that the password recovery email has been sent.