Beispiel #1
0
 public void CheckOut_NoAddresValidation_WS_1306()
 {
     if (false)
     {
         Assert.Ignore();
     }
     else
     {
         GoToMallHomePage mallPage = InitialPage.Go().EnterId(client).Logon().ClickLogin().NavigateToMall();
         mallPage.CheckOptionPurchaseType("Email (Instant)");
         CompanyGiftCard giftCard = mallPage.SearchCompany("Buffalo").SelectCompany();
         CheckOutPage    checkout =
             giftCard.ClickPlusAmount().ClickAddToCart().ClickGoToCart().ClickCheckOut().ClickNext();
         Assert.AreEqual("This field is required.", checkout.GetErrorMsgFirstName(),
                         "Error msg is not show or incorrect in first name");
         Assert.AreEqual("This field is required.", checkout.GetErrorMsgLastName(),
                         "Error msg is not show or incorrect in last name");
         Assert.AreEqual("This field is required.", checkout.GetErrorMsgAddress(),
                         "Error msg is not show or incorrect in Address");
         Assert.AreEqual("This field is required.", checkout.GetErrorMsgCity(),
                         "Error msg is not show or incorrect in city");
         Assert.AreEqual("This field is required.", checkout.GetErrorMsgZip(),
                         "Error msg is not show or incorrect in Zip code");
         Assert.AreEqual("This field is required.", checkout.GetErrorMsgPhone(),
                         "Error msg is not show or incorrect in phone number");
     }
 }
Beispiel #2
0
 //WS_1118
 public void Checkout_ShippingValidateFullNamePT1_WS_1118()
 {
     if (false)
     {
         Assert.Ignore();
     }
     else
     {
         string           name = "Foot Locker", deliver = "email";
         GoToMallHomePage mallPage     = InitialPage.Go().Logon().ClickLogin().NavigateToRedeem();
         CompanyGiftCard  giftCardPage = mallPage.SearchCompany(name).SelectCompany();
         Assert.AreEqual("10", giftCardPage.GetAmount(), "10 is not the default amount");
         giftCardPage.ClickPlusAmount().ClickPlusAmount().ClickPlusAmount();
         Assert.IsTrue(giftCardPage.IsQtyAvailable(), "Quantity field is available");
         CompanyGifCart cartPage = giftCardPage.ClickAddToCart().ClickGoToCart();
         Assert.IsTrue(cartPage.IsFootLockerAdded(), "FootLocker was not added to the cart");
         CheckOutPage checkout = cartPage.ClickCheckOut();
         checkout.FillName("A")
         .FillLastName("A")
         .FillAddress("123 Test");
         Assert.AreEqual("Please enter at least 2 characters.", checkout.GetErrorMsgFirstName(),
                         "The Error Message is not present or show");
         Assert.AreEqual("Please enter at least 2 characters.", checkout.GetErrorMsgLastName(),
                         "The Error Message is not present or show");
     }
 }