claire12209 / RecipeBook

CPT_S 322 Project
Apache License 2.0
0 stars 0 forks source link

Favorite recipes #6

Closed claire12209 closed 3 hours ago

claire12209 commented 1 month ago

Name: Save recipe to account via favorites Actor(s): User Description: Connect recipes to your account via the favorites folder Preconditions: selected recipe to add to favorites Basic Flow: The user clicks the star icon to favorite the recipe, which is then stored in the user’s favorites folder Alternate Flows: If the recipe is already in the favorites folder, the star icon will deliver the message “Already in favorites” Postconditions: The user can now access their favorite recipes via the favorites folder

User Story 6: As a user, I want to save recipes that I like so that I can quickly access them later.

Feature 6: Save Favorite Recipes • Scenario 1: User successfully saves a recipe to their favorites o Given the user is logged in and viewing a recipe o When the user clicks the “Save to Favorites” button o Then the system adds the recipe to the user’s favorites list • Scenario 2: User views all saved recipes o Given the user is logged in and on their profile page o When the user clicks the “View Favorites” button o Then the system displays all recipes saved in the user’s favorites list • Scenario 3: User removes a recipe from their favorites o Given the user is logged in and on their favorites list page o When the user clicks the “Remove from Favorites” button for a recipe o Then the system removes the recipe from the user’s favorites list