@Test(dependsOnMethods = "checkSurchargeTest") public void changeProductOrderDataTest() { PartnersPages.priceManagementTab().clickOrderInformationTab(); PartnersPages.orderInformationTab().clickProductInShoppingCart(productData.getProductName()); PartnersPages.scheduleAdvancedTab().waitForProductPageLoad(productData.getProductUniqueId()); productData.setProductSize("10 columns"); productData.setProductSizeHeight("80"); Actions.advancedBookingActions().setProductData(productData); PartnersPages.orderInformationTab().clickSaveOrderButton(); }
@Test(dependsOnMethods = "addProductToOrder") public void checkSurchargeTest() { PartnersPages.orderInformationTab().clickPriceManagmentTab(); PartnersPages.priceManagementTab().waitPageToLoad(); Assert.assertEquals( PartnersPages.priceManagementTab() .getAppliedSurchargeAmount("In color", productData.getProductName()), "100 In amount CHF 100.00", "Incorrect surcharge amount"); }
@Test(dependsOnMethods = "changeProductOrderDataTest") public void testCheckUpdatedSurchargeTest() { PartnersPages.orderInformationTab().clickPriceManagmentTab(); PartnersPages.priceManagementTab().waitPageToLoad(); Assert.assertEquals( "200 In amount CHF 200.00", PartnersPages.priceManagementTab() .getAppliedSurchargeAmount("In color", productData.getProductName()), "Incorrect surcharge amount"); }
@Test(dependsOnMethods = "selectCustomerTest") public void addProductToOrder() { productData = new ProductData(); productData.setProductName("Il Mattino della Domenica"); productData.setProductUniqueId("24206"); productData.setProductAdType("Ads"); productData.setProductHeading("Recommendations"); productData.setProductSubHeading("Base"); productData.setProductColor("B/W + 3 colors"); productData.setProductPrescriptionSize("Full material"); productData.setProductSize("2 columns"); productData.setProductSizeHeight("50"); productData.setProductDatesCount(1); productData.setProductContentType("07 Without digital transmission"); productData.setProductContentDescription("Description"); Actions.advancedBookingActions().addProductToShoppingCart(productData); PartnersPages.orderInformationTab().clickSaveOrderButton(); }