Domain object to domain object - Preethi-Ayyamperumal/Ayyamperumal-Preethi-webdev-project GitHub Wiki
Use case 1: Orders containing products (Many to many)
steps
- login as alice
- search for a product and open the product page by clicking product's name
- click add to cart
- search for another product and open the product page by clicking product's name
- click add to cart
- click 'checkout' now
- click 'place order'
- Alert saying "Awesome! ORder successfully placed' with link to alice's orders
- click that link
- click on the latest order. clicking on that will have two products we added and its information.
Use case 2: Product containing Reviews (one to many)
steps
- login as alice
- search for a product and open the product page by clicking product's name
- click 'add review'
- Enter review and rating data
- save review
- login as ed
- search for same product and open the product page by clicking product's name
- click 'add review'
- Enter review and rating data
- save review
- Now the product page will have both reviews
- Add review will be hidden if user added review already
Use Case 3: Wishlist can have multiple products (many to many)
steps
- login as alice
- search for a product and open the product page by clicking product's name
- click 'Add to WishList'
- search for another product and open the product page by clicking product's name
- click 'Add to WishList'
- Both the products will be displayed on the wishlist page
Use Case 4: Carts can have multiple products (many to many)
steps
- login as alice
- search for a product and open the product page by clicking product's name
- click 'Add to Cart'
- search for another product and open the product page by clicking product's name
- click 'Add to Cart'
- Both the products will be displayed on the wishlist page
7)logout and login again
- go to 'profile' page
9)click cart glyphicon on top right, cart will have added products