예제 #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");
     }
 }