public void ThenIFirstStepOfOrderPlacementProcessIsCompletedSuccessfully() { CartPageActions cart = new CartPageActions(); string actualText = cart.GetStatusOfFirstStepOfOrderPlacement(); string expectedText = "Шаг 1 выполнен"; Assert.AreEqual(expectedText, actualText); }
public void ThenProductIsNoLongerPresentInMyCart() { CartPageActions cart = new CartPageActions(); //ScenarioContext.Current.TryGetValue("AddedItem", out string itemId); string actualState = cart.GetTextFromEmptyCart(); string expectedState = "В корзине нет товаров"; Assert.AreEqual(expectedState, actualState); }
public void WhenIProceedToTheOrder() { CartPageActions cart = new CartPageActions(); cart.FillClientInfo(); cart.ProceedTheOrder(); cart.ChooseDeliveryOptions(); cart.ProceedTheOrder(); }
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); }
public void ThenIAmOnTheSecondStepOfOrderPlacementProcess() { CartPageActions cart = new CartPageActions(); string actualText = cart.GetTextFromOrderPlaceLabel(); }
public void WhenIDeleteProductFromTheCart() { CartPageActions cart = new CartPageActions(); cart.DeleteItemFromCart(); }