public void ShouldBeAbleToAddItemToCart() { //Arrange var productsPage = new ProductsPage(Driver); //Act productsPage.Open(); productsPage.AddToCart(Item.Backpack); //Assert productsPage.Cart.ItemCount.Should().Be(1, "we added a backpack to the cart"); }
public void AddingProductToBasket() { string productName = "Джинсы"; var productsPage = new ProductsPage(driver); productsPage.GoToPage(); productsPage.AddToCart(productName); var basketPage = productsPage.GoToBasketPage(); var productInBasket = basketPage.CheckProduct(); Assert.IsTrue(productInBasket.Contains(productName)); }