@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 = "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(); }