use of org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage in project head by mifos.
the class NavigationHelper method navigateToLoanProductDetailsPage.
public LoanProductDetailsPage navigateToLoanProductDetailsPage(String loanProduct) {
ViewLoanProductsPage loanProductsPage = navigateToLoanProductsPage();
LoanProductDetailsPage loanProductDetailsPage = loanProductsPage.viewLoanProductDetails(loanProduct);
loanProductDetailsPage.verifyPage();
return loanProductDetailsPage;
}
use of org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage in project head by mifos.
the class LoanTestHelper method enableInterestWaiver.
public void enableInterestWaiver(String loanProduct, boolean interestWaiver) {
AdminPage adminPage = navigationHelper.navigateToAdminPage();
ViewLoanProductsPage viewLoanProducts = adminPage.navigateToViewLoanProducts();
LoanProductDetailsPage loanProductDetailsPage = viewLoanProducts.viewLoanProductDetails(loanProduct);
EditLoanProductPage editLoanProductPage = loanProductDetailsPage.editLoanProduct();
DefineNewLoanProductPage.SubmitFormParameters formParameters = new DefineNewLoanProductPage.SubmitFormParameters();
formParameters.setInterestWaiver(interestWaiver);
EditLoanProductPreviewPage editLoanProductPreviewPage = editLoanProductPage.submitInterestWaiverChanges(formParameters);
editLoanProductPreviewPage.submit();
}
use of org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage in project head by mifos.
the class NavigationHelper method navigateToLoanProductsPage.
public ViewLoanProductsPage navigateToLoanProductsPage() {
AdminPage adminPage = navigateToAdminPage();
ViewLoanProductsPage loanProductsPage = adminPage.navigateToViewLoanProducts();
loanProductsPage.verifyPage();
return loanProductsPage;
}
use of org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage in project head by mifos.
the class LoanProductTestHelper method editLoanProductIncludeQuestionsGroups.
public void editLoanProductIncludeQuestionsGroups(String loanProduct, String... questionGroup) {
AdminPage adminPage = navigationHelper.navigateToAdminPage();
ViewLoanProductsPage viewLoanProducts = adminPage.navigateToViewLoanProducts();
LoanProductDetailsPage loanProductDetailsPage = viewLoanProducts.viewLoanProductDetails(loanProduct);
EditLoanProductPage editLoanProductPage = loanProductDetailsPage.editLoanProduct();
DefineNewLoanProductPage.SubmitFormParameters formParameters = new DefineNewLoanProductPage.SubmitFormParameters();
formParameters.setQuestionGroups(Arrays.asList(questionGroup));
EditLoanProductPreviewPage editLoanProductPreviewPage = editLoanProductPage.submitQuestionGroupChanges(formParameters);
editLoanProductPreviewPage.submit();
}
use of org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage in project head by mifos.
the class LoanProductTestHelper method enableInterestWaiver.
public void enableInterestWaiver(String loanProduct, boolean interestWaiver) {
AdminPage adminPage = navigationHelper.navigateToAdminPage();
ViewLoanProductsPage viewLoanProducts = adminPage.navigateToViewLoanProducts();
LoanProductDetailsPage loanProductDetailsPage = viewLoanProducts.viewLoanProductDetails(loanProduct);
EditLoanProductPage editLoanProductPage = loanProductDetailsPage.editLoanProduct();
DefineNewLoanProductPage.SubmitFormParameters formParameters = new DefineNewLoanProductPage.SubmitFormParameters();
formParameters.setInterestWaiver(interestWaiver);
EditLoanProductPreviewPage editLoanProductPreviewPage = editLoanProductPage.submitInterestWaiverChanges(formParameters);
editLoanProductPreviewPage.submit();
}
Aggregations