Esempio n. 1
0
        public void ThenIFirstStepOfOrderPlacementProcessIsCompletedSuccessfully()
        {
            CartPageActions cart         = new CartPageActions();
            string          actualText   = cart.GetStatusOfFirstStepOfOrderPlacement();
            string          expectedText = "Шаг 1 выполнен";

            Assert.AreEqual(expectedText, actualText);
        }
Esempio n. 2
0
        public void ThenProductIsNoLongerPresentInMyCart()
        {
            CartPageActions cart = new CartPageActions();
            //ScenarioContext.Current.TryGetValue("AddedItem", out string itemId);
            string actualState   = cart.GetTextFromEmptyCart();
            string expectedState = "В корзине нет товаров";

            Assert.AreEqual(expectedState, actualState);
        }
Esempio n. 3
0
        public void WhenIProceedToTheOrder()
        {
            CartPageActions cart = new CartPageActions();

            cart.FillClientInfo();
            cart.ProceedTheOrder();
            cart.ChooseDeliveryOptions();
            cart.ProceedTheOrder();
        }
Esempio n. 4
0
        public void ThenProductIsAddedToTheCart()
        {
            CartPageActions cart = new CartPageActions();

            ScenarioContext.Current.TryGetValue("AddedItem", out string itemId);
            int actualId = cart.GetItemId();
            int expectedId;

            Int32.TryParse(itemId, out expectedId);
            Assert.AreEqual(expectedId, actualId);
        }
Esempio n. 5
0
 public void ThenIAmOnTheSecondStepOfOrderPlacementProcess()
 {
     CartPageActions cart       = new CartPageActions();
     string          actualText = cart.GetTextFromOrderPlaceLabel();
 }
Esempio n. 6
0
        public void WhenIDeleteProductFromTheCart()
        {
            CartPageActions cart = new CartPageActions();

            cart.DeleteItemFromCart();
        }