Пример #1
0
        public void Test_AccountCartOpen()
        {
            _navPanel = new NavigationPanel(driver);
            wait.Until(d => _navPanel.IsNavigationPanelOpened());
            _navPanel.OpenMore(wait)
            .OpenLoginPage(wait)
            .LogIn(TestEmail, TestPassword, wait);

            var cartPage = _navPanel
                           .OpenCart(wait);

            var actualTitle = cartPage.GetTitle(wait);

            StringAssert.AreEqualIgnoringCase(ExpectedEmptyCartTitle, actualTitle);
        }
Пример #2
0
        public void Test_AccountCartOpen()
        {
            navPanel = new NavigationPanel(driver);
            wait.Until((d) => navPanel.IsNavigationPanelOpened());
            navPanel.OpenLoginPage(wait)
            .LogIn("*****@*****.**", "Testpassword1", wait);

            CartPage cartPage = navPanel
                                .Open(wait)
                                .OpenCart(wait);

            String actualTitle   = cartPage.GetTitle(wait);
            String expectedTitle = "Корзина пуста";

            StringAssert.AreEqualIgnoringCase(expectedTitle, actualTitle);
        }
Пример #3
0
        public void Test_AccountWishListOpen()
        {
            _navPanel = new NavigationPanel(driver);
            wait.Until(d => _navPanel.IsNavigationPanelOpened());
            _navPanel.OpenMore(wait)
            .OpenLoginPage(wait)
            .LogIn(TestEmail, TestPassword, wait);

            var localWishList = _navPanel
                                .OpenWishLists(wait)
                                .OpenGuestWishList(wait);

            var actualTitle = localWishList.EmptyTitle.Text;

            StringAssert.AreEqualIgnoringCase(ExpectedEmptyWishListTitle, actualTitle);
        }
Пример #4
0
        public void Test_AccountWishListOpen()
        {
            navPanel = new NavigationPanel(driver);
            wait.Until((d) => navPanel.IsNavigationPanelOpened());
            navPanel.OpenLoginPage(wait)
            .LogIn("*****@*****.**", "Testpassword1", wait);

            WishList localWishList = navPanel
                                     .Open(wait)
                                     .OpenWishLists(wait)
                                     .OpenGuestWishList(wait);

            String actualTitle   = localWishList.EmptyTitle.Text;
            String expectedTitle = "Этот список пуст";

            StringAssert.AreEqualIgnoringCase(expectedTitle, actualTitle);
        }
Пример #5
0
 public void Test_OpenNavPane()
 {
     navPan = new NavigationPanel(driver);
     navPan.Open(wait);
     Assert.IsTrue(navPan.IsNavigationPanelOpened());
 }