Beispiel #1
0
        public void ProductSummary_QuickView()
        {
            var menu = new MenuPart(driver);

            // hitting the menu should return at least one result
            Assert.That(menu.BringDresses(), Is.True);

            var     offer   = new OfferPart(driver);
            Product summary = offer.GetSummarytInfo(0);
            Product detail  = offer.GetQuickViewInfo(0);

            Assert.That(summary != null && detail != null && summary.Name == detail.Name && summary.Price == detail.Price, Is.True);
        } // ProductSummary_QuickView
Beispiel #2
0
        public void CheckoutAndVerifyHistory()
        {
            var menu = new MenuPart(driver);

            // hitting the menu should return at least one result
            Assert.That(menu.BringDresses(), Is.True);

            var offer = new OfferPart(driver);

            Assert.That(offer.PutDifferentProductsInCart(3), Is.True);

            Order myOrder = new Order();

            var cart = new CartPart(driver);

            myOrder.Value = cart.CheckoutCart();

            var address = new CheckoutAddressPart(driver);

            address.NextPage();

            var carrier = new CheckoutCarrierPart(driver);

            carrier.CheckTerms();
            carrier.NextPage();

            var payment = new CheckoutPaymentPart(driver);

            payment.SelectCheque();

            var order = new OrderConfirmationPart(driver);

            myOrder.Id = order.Confirm();
            order.NextPage();

            var   history     = new HistoryPart(driver);
            Order latestOrder = history.GetLatest();

            cart.EmptyAjaxCart();

            Assert.That((myOrder.Id == latestOrder.Id && myOrder.Value == latestOrder.Value), Is.True);
        } // CheckoutAndVerifyHistory