Skip to content

User Stories

Albert Kim edited this page Jun 24, 2023 · 4 revisions

πŸ’πŸ» Users

Sign Up

  • As an unregistered and unauthorized user, I should be able to sign up for an account.
  • I should be able to enter my first name, last name, email, mobile number and preferred password on a clearly laid out form.
  • After successfully signing up, I should be logged in and redirected to the home page.
  • When I enter invalid data on the sign-up form, the form should not be able to submit and all of my validation errors are highlighted in red and my data should persist and all the errors should be displayed at once.

Log in

  • As a registered and unauthorized user, I should be able to log in to my account.
  • After successfully logging in, I should be redirected to the home page or the item I was displaying.
    • I should be able to enter my email and password on a clearly laid out form.
  • When I enter invalid credentials I should not be logged in and the form should show me a login error.
  • When I enter invalid data on the log-in form, I should not be logged in, all of my validation errors are highlighted in red, my data should persist, and all the errors should be displayed at once.

Demo User

  • As a unregistered and unauthorized user, I should be able to login as a Demo User.
  • As a Demo User I should have full access to the site's features and functionality so that I can test the site without the need to log in or sign up.

Log Out

  • As a logged in user, I should be able to log out via an easy to find log out button on the navigation bar.
  • After successfully logging out I should be redirected to the main page with all the items.
  • I should be able to log out from any page.

πŸ“ Reviews

Read - Reviews

  • I should be able to see all the reviews on an item regardless of being logged in or logged off.
  • In each post I should see:
    • Post Author and the date the review was posted
    • The item's review content and any associated images to the review
    • How long the item was owned if owned

Create - Reviews

  • As a logged in user, I should be able to post a review on an item.
  • The review form should not submit until I enter some form of content.
  • I should be able to make a new review with words and include images if I want to.
  • Once I post my review I should see it at the top of the reviews list in the item's review section.

Update - Reviews

  • As a logged in user, I should be able to edit my own review on an item.
  • I should not be able to edit someone else's review on an item.
  • The option to edit a review should be displayed under my own posted review in the bottom when clicking the edit review icon.
  • When editing my review I should see all of my previous review content pre-populated.
  • Once I finish editing my review, I should see my edited review.

Delete - Reviews

  • As a logged in user, I should be able to delete my own reviews.
  • I should not be able to delete someone else’s reviews.
  • The option to delete a review should be displayed under my own posted review in the bottom when clicking the delete icon.
  • Once I click the delete review button, I should be prompted with a modal to confirm the delete.

πŸ›’ Carts

Read - Carts

  • Only as a logged in user should I be able to see all the items in my cart.
  • In each cart I should see:
    • The product name and image
    • The quantity count
    • Shipping cost, Estimated Tax, Subtotal count

Create - Carts

  • Only as a logged in user should I be able to add any items to my cart.
  • As I add items to the cart, I should be able to see:
    • The product name and image
    • The quantity count
    • Shipping cost, Estimated Tax, Subtotal count

Update - Carts

  • Only as a logged in user should I be able to update the quantity of all the items in my cart.
  • Once updated, I should see the changes in the following areas:
    • Quantity count changed
    • Shipping cost, Estimated Tax, Subtotal count change

Delete - Carts

  • Only as a logged in user should I be able to delete all the items in my cart.
  • Once removed from the cart, I should see the changes in the following areas:
    • Products in my cart
    • Quantity count changed
    • Shipping cost, Estimated Tax, Subtotal count change

πŸ›Ÿ Saved Items

Read - Saved Items

  • Only as a logged in user should I be able to see all the items that I saved.
    • Item name and Item picture
    • Reviews
    • Price of the items
    • Option to add to cart

Create - Saved Item

  • Only as a logged in user should I be able to add any items to my saved list.
  • Upon clicking Save Item and viewing my Saved Items list, I should see that my item is in there.

Update - Saved Item

  • Only as a logged in user should I be able to edit any items in my saved list.
  • Upon clicking "Manage your saved items" and viewing my Saved Items list, I should be able edit my saved item list.

Delete - Saved Item

  • Only as a logged in user should I be able to delete any items in my saved list.
  • Upon removing my the items from my saved list, I should not see the item in the list.

🎲 Items

Read - Items

  • I should be able to see all the items regardless of being logged in or logged off.
  • For Each Item, I should see:
    • Item name and picture
    • Review
    • Price

Create - Items

  • As an admin user, I should be able to add items to the store.
  • The items form should not submit until I enter all the necessary contents.
  • Once I add an item, I should see it in the store on the top of its list.

Update - Items

  • As an admin user, I should be able to edit the items in the store.
  • The edit items form should not submit until I enter all the necessary contents.
  • Once I finish editing the items, I should see the changes in the store.

Delete - Items

  • As an admin user, I should be able to remove the items in the store.
  • Once I delete the items, I should be prompted with a modal to confirm the delete.
  • Once deleted, I should not see it in the store anymore.