public void PlaceOrderWithTwoItems()
        {
            //Complete actions for test
            homePage.IncreaseQuantity();
            homePage.Checkout();
            homePage.SwitchToNewTab();

            //Assert if two items are in the cart
            Assert.IsTrue(homePage.OrderHasTwoItems(), "Order does not contain two items");

            //Continue completing steps
            homePage.ConfirmCheckout();
            homePage.ConfirmOrder();
            homePage.Login();
            homePage.ConfirmAddress();
            homePage.AcceptTerms();
            homePage.ConfirmDelivery();
            homePage.ClickPaymentMethod();
            homePage.SubmitOrder();

            //Assert order is placed
            Assert.IsTrue(homePage.OrderWasPlaced(), "Order was not placed");
        }
Esempio n. 2
0
 public void AcceptSeleniumTerm()
 {
     home.NavigateToSeleniumIDE(browser);
     home.AcceptTerms(browser);
 }