nss-evening-cohort-11 / WildflowerCoffeeGifts

0 stars 2 forks source link

Ars connect user3 #126

Closed ancasimon closed 3 years ago

ancasimon commented 3 years ago

This PR connects the logged-in Firebase user record with the corresponding user record int he SQL database.

To test:

  1. Make sure you delete any hard-coded userId in the ShoppingCart.js file and the SingleProductView.js file. Set userId in state in both of these files to 0!!
  2. Log in to the app with an email that is registered and has an active user account in the database.
  3. Go to the Cart page and run through the shopping cart workflow - add products, add delivery info, add billing info, add payment type or update existing. Expected result: You should be able to place an order and get the confirmation message that the order is on its way.
  4. Go to your WCG SQL database and run queries on the Users, Orders, and PaymentTypes collections. Expected result: Any changes you made when placing the order (if you add delivery info or changed the billing address or added a new payment card) should be reflected in the database.
  5. Also please confirm that any other features you worked on (beyond the Cart) still work as expected!
Nikababy01 commented 3 years ago

@ancasimon works great, only thing is state printing 42 for delivery state