Beispiel #1
0
        public void Test3()
        {
            PrincipalPage principalPage = new PrincipalPage();
            ProductPage   producPages   = new ProductPage();
            CarPage       carPage       = new CarPage();

            principalPage.AddAndIntoTheCar();
            carPage.ApplyCoupon(coupon);
            carPage.ValidateLabelCoupon(couponMessage);
            carPage.ValidateDiscountApplied(price);
        }
Beispiel #2
0
        public void Test1()
        {
            PrincipalPage  principalPage  = new PrincipalPage();
            ProductPage    producPages    = new ProductPage();
            CarPage        carPage        = new CarPage();
            RequestProduct requestProduct = new RequestProduct();

            requestProduct.SendRequestProduct();

            principalPage.SearchProduct(product);
            producPages.ValidateProductName(product);
            producPages.ValidateProductPrice(price);
            producPages.IncreaseQuantity(quantityItemsInCar);
            producPages.ValidateProductQuantity(itemsQuantity);
            producPages.labelCarCount.Click();
            carPage.ValidateNameIntoTheCar(product);
            carPage.ValidatePriceIntoTheCar(price);
        }