Example #1
0
 public void Cart_DeleteItem_WS_1313()
 {
     if (false)
     {
         Assert.Ignore();
     }
     else
     {
         GoToMallHomePage mallPage = InitialPage.Go().EnterId(client).Logon().ClickLogin().NavigateToMall();
         mallPage.CheckOptionPurchaseType("Email (Instant)");
         CompanyGiftCard giftCard = mallPage.SearchCompany("Groupon").SelectCompany();
         CompanyGifCart  gifcart  = giftCard.ClickPlusAmount().ClickAddToCart().ClickGoToCart();
         Assert.IsTrue(gifcart.IsGrouponAdded(), "Groupon was not added");
         gifcart.ClickMinusQuant();
         Thread.Sleep(1000);
         Assert.IsFalse(gifcart.IsGrouponAdded(), "Groupon was not added");
         gifcart.Refresh();
         Assert.IsFalse(gifcart.IsGrouponAdded(), "Groupon was not added");
     }
 }
Example #2
0
 public void Cart_PayCalculation_WS_1315()
 {
     if (!DataParser.ReturnExecution("WS_1315"))
     {
         Assert.Ignore();
     }
     else
     {
         GoToMallHomePage mallPage = InitialPage.Go().EnterId(client).Logon().ClickLogin().NavigateToMall();
         mallPage.CheckOptionPurchaseType("Email (Instant)");
         CompanyGiftCard giftCard = mallPage.SearchCompany("Groupon").SelectCompany();
         CompanyGifCart  gifcart = giftCard.ClickPlusAmount().ClickAddToCart().ClickGoToCart();
         int             total = gifcart.GetTotal(), quant = gifcart.GetQuantity(), amount = gifcart.GetAmount();
         Assert.AreEqual(total, quant * amount, "Is not equal");
         gifcart.ClickPlusQuant();
         gifcart.Refresh();
         total  = gifcart.GetTotal();
         quant  = gifcart.GetQuantity();
         amount = gifcart.GetAmount();
         Assert.AreEqual(total, quant * amount, "Is not equal");
     }
 }