Search in sources :

Example 1 with ViewLoanProductsPage

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;
}
Also used : ViewLoanProductsPage(org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage) LoanProductDetailsPage(org.mifos.test.acceptance.framework.loanproduct.LoanProductDetailsPage)

Example 2 with ViewLoanProductsPage

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();
}
Also used : EditLoanProductPage(org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPage) ViewLoanProductsPage(org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) LoanProductDetailsPage(org.mifos.test.acceptance.framework.loanproduct.LoanProductDetailsPage) EditLoanProductPreviewPage(org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPreviewPage) DefineNewLoanProductPage(org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage)

Example 3 with ViewLoanProductsPage

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;
}
Also used : ViewLoanProductsPage(org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage)

Example 4 with ViewLoanProductsPage

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();
}
Also used : EditLoanProductPage(org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPage) ViewLoanProductsPage(org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) LoanProductDetailsPage(org.mifos.test.acceptance.framework.loanproduct.LoanProductDetailsPage) EditLoanProductPreviewPage(org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPreviewPage) DefineNewLoanProductPage(org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage)

Example 5 with ViewLoanProductsPage

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();
}
Also used : EditLoanProductPage(org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPage) ViewLoanProductsPage(org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) LoanProductDetailsPage(org.mifos.test.acceptance.framework.loanproduct.LoanProductDetailsPage) EditLoanProductPreviewPage(org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPreviewPage) DefineNewLoanProductPage(org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage)

Aggregations

ViewLoanProductsPage (org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage)5 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)4 LoanProductDetailsPage (org.mifos.test.acceptance.framework.loanproduct.LoanProductDetailsPage)4 DefineNewLoanProductPage (org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage)3 EditLoanProductPage (org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPage)3 EditLoanProductPreviewPage (org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPreviewPage)3