zoe92300 / TodoApp-FlutterFlow

0 stars 0 forks source link

US5 : Add Profile #11

Open zoe92300 opened 7 hours ago

zoe92300 commented 7 hours ago

AS A new user, I WANT TO set up my profile with my name, favorite day of the week, and birthday, TO personalize my account, SO THAT the app can tailor my experience and display relevant information.

SCENARIO: Successful Profile Setup GIVEN the user has just created an account, WHEN the user is redirected to the profile setup page, AND provides a valid name, selects their favorite day of the week from a dropdown, and enters a valid birthday, THEN the profile information should be saved in the database WITHIN 2 seconds, AND the user should be redirected to the main to-do list screen WITHIN 1 second, AND the profile data should be displayed correctly when accessed later.

SCENARIO: Missing Name Field GIVEN the user is on the profile setup page, WHEN the user leaves the "Name" field empty, AND clicks the "Save Profile" button, THEN the system should display an error message stating "Please enter your name" WITHIN 1 second, AND the profile should not be saved until a valid name is provided.

SCENARIO: No Birthday Selected GIVEN the user is on the profile setup page, WHEN the user does not select a birthday, AND clicks the "Save Profile" button, THEN the system should display an error message stating "Please select your birthday" WITHIN 1 second, AND the profile should not be saved until a favorite day is selected.

SCENARIO: No Favorite Day Selected GIVEN the user is on the profile setup page, WHEN the user does not input a favorite day of the week, AND clicks the "Save Profile" button, THEN the system should display an error message stating "Please input your favorite day of the week" WITHIN 1 second, AND the profile should not be saved until a favorite day is selected.

SCENARIO: Network Error During Profile Setup GIVEN the user is on the profile setup page, WHEN the user enters valid information for the name, favorite day of the week, and birthday, AND clicks the "Save Profile" 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 profile setup once the network is stable.