Example #1
0
        public void CheckFixedTaxHasTheSameValueAsInAdminPanel()
        {
            HomePage homePage = LoadHomePage();

            homePage.AddProductToCart(ProductRepository.GetIPhone());
            cartPage = homePage.GotoShoppingCartPage();
            SelectShippingMethodComponent ShippingMethod = cartPage.ApplySippingAndTaxes(ShippingDetailsRepository.GetUADetails());

            cartPage = ShippingMethod.ApllyShippingMethod();
            Thread.Sleep(2000);                                          // for presentation ONLY

            decimal fixedTestTax   = cartPage.GetPriceOptionValue(TaxRateRepository.GetFixTaxRate().Name + ":");
            decimal expectedResult = 2m;

            Assert.AreEqual(expectedResult, fixedTestTax);
        }