ramialdine / todoapp

0 stars 0 forks source link

US1 Account Creation #3

Open ramialdine opened 2 weeks ago

ramialdine commented 2 weeks ago

AS A user, I WANT TO create an account using email/password authentication, TO store and manage my to-do list items on the Internet SO THAT I can access and manage my tasks from the app across different devices.

SCENARIO: Successful Account Creation GIVEN the user is on the sign-up screen of the ToDo List app, WHEN the user enters a valid email address and a strong password, AND clicks the "Create Account" button, THEN an account should be created in the Firebase authentication system, WITHIN 3 seconds, AND the user should be redirected to the main to-do list screen WITHIN 2 seconds.

SCENARIO: Account Already Exists GIVEN the user is on the sign-up screen of the ToDo List app, WHEN the user enters an email address that is already associated with an existing account, AND clicks the "Create Account" button, THEN the system should display an error message stating "An account with this email already exists" WITHIN 1 second, AND prompt the user to either log in or recover their password.

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

SCENARIO: Weak Password GIVEN the user is on the sign-up screen of the ToDo List app, WHEN the user enters a password that does not meet the strength requirements (e.g., less than 8 characters, no uppercase letters, or lacks numbers/special characters), AND clicks the "Create Account" button, THEN the system should display an error message stating "Your password is too weak. Please choose a stronger password." WITHIN 1 second, AND prevent the account creation process from proceeding.

SCENARIO: Network Error During Account Creation GIVEN the user is on the sign-up screen of the ToDo List app, WHEN the user enters a valid email address and password, AND clicks the "Create Account" 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 account creation process once the network is stable.

SCENARIO: Password Recovery Prompt GIVEN the user attempts to create an account with an existing email, WHEN the system displays the "Account already exists" error, AND the user selects the "Forgot Password" option, THEN the system should prompt the user to enter their email for password recovery WITHIN 1 second, AND send a password reset email WITHIN 30 seconds.

Acceptance Criteria: Account Creation for Volunteer Match Successful Account Creation:

User can enter a valid email and password on the sign-up screen. Upon clicking "Create Account," the system creates an account in Firebase within 3 seconds. The user is redirected to the main dashboard with personalized volunteer opportunities within 2 seconds. The system securely stores user information in Firebase. Account Already Exists:

If the user enters an email that is already associated with an existing account, the system displays an error message, “An account with this email already exists,” within 1 second. The error message prompts the user to log in or recover their password. Invalid Email Address Format:

If the user enters an email with an invalid format, the system displays an error message, “Please enter a valid email address,” within 1 second. The account creation process is blocked until a valid email format is entered. Weak Password:

If the user enters a password that does not meet strength requirements (minimum 8 characters, must include uppercase letters, numbers, and special characters), the system displays an error message, “Your password is too weak. Please choose a stronger password.” The error message is shown within 1 second, and the account creation process is blocked until a strong password is entered. Network Error During Account Creation:

If a network error occurs during account creation, the system displays an error message, “Network error. Please try again later,” within 2 seconds. The system allows the user to retry once the network is stable. Password Recovery:

If the user attempts to create an account with an existing email, the system displays an “Account already exists” error within 1 second. When the user selects the “Forgot Password” option, the system prompts them to enter their email for password recovery within 1 second. A password reset email is sent to the user’s email within 30 seconds.