Ejemplo n.º 1
0
        public void AddTwoDifferentProductToCart()
        {
            Product            firstTestMice  = ProductCreator.WithFirstWireMice();
            Product            secondTestMice = ProductCreator.WithSecondWireMice();
            ProductCatalogPage allMicePage    = new ProductCatalogPage(driver).openPage();

            allMicePage.AddProductToCartByName(firstTestMice.ProductName);

            CartPage cartPage = allMicePage.openPage().
                                AddProductToCartByName(secondTestMice.ProductName)
                                .ViewCart();

            Assert.IsTrue(cartPage.CountAddedProducts() == 2);
            Assert.IsTrue(cartPage.isProductAdded("Razer DeathAdder V2 Pro"), "Product  not added");
            Assert.IsTrue(cartPage.isProductAdded("Razer Naga Pro"), "Product  not added");
        }