Example #1
0
        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");
        }
Example #2
0
        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));
        }