Ejemplo n.º 1
0
        public void TestCreateOrderWithTwoPhones()
        {
            var userMenuPop = new UserMenuPopup(_driver);

            userMenuPop.CloseBanner();
            userMenuPop.OpenUserMenu();
            userMenuPop.OpenSignUpPage();

            var signUpPage = new SignUpPage(_driver);

            signUpPage.FillUserData(_user);
            signUpPage.ClickSignUpButton();

            var searchPage = new SearchPage(_driver);

            searchPage.SendSearchRequest(SearchRequest);
            searchPage.ClickOnFirstFoundProductColor();

            var productPage    = new ProductPage(_driver);
            var boughtProducts = productPage.BuyTwoProductsDifferentColor();

            boughtProducts.Reverse();

            var cartPopup = new CartPopup(_driver);

            cartPopup.CheckProductsInCartAreExpected(boughtProducts);
            cartPopup.CheckTotalPriceIsExpected(boughtProducts);
            cartPopup.ClickCreateOrder();

            var orderCreationPage = new OrderCreationPage(_driver);

            orderCreationPage.EnterOrderDetails(_user);
            orderCreationPage.SelectDeliveryMethod("курьер Новая Почта");
            orderCreationPage.EnterDeliveryInfo(_user);
        }