示例#1
0
        public void CarRefreshSFLANON_T5502()
        {
            var indexPage = new IndexPage(driver, url);

            indexPage.Header.SelectManufacturer(2);

            CatalogItemsPage catalogItemPage = indexPage.Header.ClickOnSearchButton();

            catalogItemPage.AddtoCartbuttonInCatalog();

            catalogItemPage.WaitForAppBusy();

            CartPage cartMainPage = catalogItemPage.Header.ClickOnViewCart();

            //Move items to Save For Later section
            cartMainPage.MovetoSFL();

            //TODO
            //wait until save for later section has rendered
            Thread.Sleep(5000);

            Assert.IsTrue(cartMainPage.HeadsUpCartInfo(), "Cart is not Empty");

            cartMainPage.SeeSFLItems();

            Assert.IsTrue(cartMainPage.MovetoCartLinkEnable(), "Save For Later Section is Empty");
        }
示例#2
0
        public void CarRefresh_ProductDetails()
        {
            var indexPage = new IndexPage(driver, url);

            indexPage.Header.SelectManufacturer(2);

            CatalogItemsPage catalogItemPage = indexPage.Header.ClickOnSearchButton();

            catalogItemPage.AddtoCartbuttonInCatalog();

            catalogItemPage.WaitForAppBusy();

            CartPage CartMainPage = catalogItemPage.Header.ClickOnViewCart();

            //TODO
            //wait until cart loading is done
            //Thread.Sleep(5000);

            Assert.IsTrue(CartMainPage.ImageSectionInCart(), "Image is not Displayed");

            Assert.IsTrue(CartMainPage.TitleSectionIsDisplayed(), "Title is not Displayed");

            Assert.IsTrue(CartMainPage.SKUSectionIsDisplayed(), "SKU Section is not Displayed");

            Assert.IsTrue(CartMainPage.LineItemSectionIsDisplayed(), "Prices or Quantity are not Displayed");

            Assert.IsTrue(CartMainPage.AddToListLink(), "Add to list Link is not displayed");
        }
示例#3
0
        public void CarRefreshWhenAddedANON_T5504()
        {
            var indexPage = new IndexPage(driver, url);

            //select the third option on the dropdown by index
            indexPage.Header.SelectManufacturer(2);

            CatalogItemsPage catalogItemPage = indexPage.Header.ClickOnSearchButton();

            catalogItemPage.AddtoCartbuttonInCatalog();

            //wait until busy animation is present
            catalogItemPage.WaitForAppBusy();

            CartPage CartMainPage = catalogItemPage.Header.ClickOnViewCart();
        }
示例#4
0
        public void CarRefreshWhenRemovedANON_T5503()
        {
            var indexPage = new IndexPage(driver, url);

            //New method for Manufacturer dropdown
            indexPage.Header.SelectManufacturer(2);

            CatalogItemsPage catalogItemPage = indexPage.Header.ClickOnSearchButton();

            catalogItemPage.AddtoCartbuttonInCatalog();

            //wait until busy animation is done
            catalogItemPage.WaitForAppBusy();

            CartPage cartMainPage = catalogItemPage.Header.ClickOnViewCart();

            Assert.IsTrue(cartMainPage.HeadsUpCartInfo(), "Totals are not displayed");
        }