@Test public void shopsForTheSameItemMultipleTimes() { application.buy("Iguana", "12345678"); application.showsItemQuantity("12345678", 1); application.continueShopping(); application.buy("Iguana", "12345678"); application.showsItemQuantity("12345678", 2); application.showsCartTotalQuantity(2); }
@Test public void shopsForItemsAndAddsThemToCart() { application.showsCartIsEmpty(); application.buy("Iguana", "12345678"); application.showsItemInCart("12345678", "Green Adult", "18.50"); application.showsGrandTotal("18.50"); application.showsCartTotalQuantity(1); application.continueShopping(); application.buy("Iguana", "87654321"); application.showsItemInCart("87654321", "Blue Female", "58.97"); application.showsGrandTotal("77.47"); application.showsCartTotalQuantity(2); }