Search in sources :

Example 1 with ViewNextInstallmentDetailsPage

use of org.mifos.test.acceptance.framework.loan.ViewNextInstallmentDetailsPage in project head by mifos.

the class RedoLoanDisbursalTest method verifyMultipleReversePayments.

private void verifyMultipleReversePayments(LoanAccountPage loanAccountPage, String payAmount, String reverseNote, int loanBalance) {
    TransactionHistoryPage transactionHistoryPage = loanAccountPage.navigateToTransactionHistory();
    transactionHistoryPage.verifyTableForReversedValues(payAmount, 3, reverseNote);
    transactionHistoryPage.navigateBack();
    ViewNextInstallmentDetailsPage installmentPage = loanAccountPage.navigateToViewNextInstallmentDetails();
    installmentPage.verifyInstallmentAmount(6, 2, "0");
    installmentPage.verifyInstallmentAmount(12, 2, "0");
    installmentPage.navigateBack();
    ViewRepaymentSchedulePage repaymentSchedulePage = loanAccountPage.navigateToRepaymentSchedulePage();
    repaymentSchedulePage.verifyRepaymentScheduleTableRow(51, 0, "Installments due");
    repaymentSchedulePage.verifyRepaymentScheduleTableRow(52, 8, "63");
    repaymentSchedulePage.verifyRepaymentScheduleTableRow(53, 8, "63");
    repaymentSchedulePage.verifyRepaymentScheduleTableRow(54, 8, "63");
    repaymentSchedulePage.verifyRepaymentScheduleTableRow(55, 0, "Future Installments");
    repaymentSchedulePage.navigateBack();
    loanAccountPage.verifyLoanTotalBalance(Integer.toString(loanBalance));
    loanAccountPage.verifyPerformanceHistory("48", "3");
    loanAccountPage.verifyStatus("Active in Good Standing");
}
Also used : TransactionHistoryPage(org.mifos.test.acceptance.framework.loan.TransactionHistoryPage) ViewRepaymentSchedulePage(org.mifos.test.acceptance.framework.loan.ViewRepaymentSchedulePage) ViewNextInstallmentDetailsPage(org.mifos.test.acceptance.framework.loan.ViewNextInstallmentDetailsPage)

Example 2 with ViewNextInstallmentDetailsPage

use of org.mifos.test.acceptance.framework.loan.ViewNextInstallmentDetailsPage in project head by mifos.

the class WaiveLoanFeeTest method waiveFeeOnLastInstallment.

// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void waiveFeeOnLastInstallment() throws Exception {
    LoginPage loginPage = appLauncher.launchMifos();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    SearchResultsPage searchResultsPage = homePage.search("000100000000012");
    searchResultsPage.verifyPage();
    LoanAccountPage loanAccountPage = searchResultsPage.navigateToLoanAccountDetailPage("000100000000012");
    ViewNextInstallmentDetailsPage viewInstallmentDetailsPage = loanAccountPage.navigateToViewNextInstallmentDetails();
    viewInstallmentDetailsPage.verifyInstallmentAmount(11, 2, "10");
    viewInstallmentDetailsPage.waiveOverdueInstallmentFee();
    viewInstallmentDetailsPage.verifyInstallmentAmount(11, 2, "0");
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) HomePage(org.mifos.test.acceptance.framework.HomePage) LoanAccountPage(org.mifos.test.acceptance.framework.loan.LoanAccountPage) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage) ViewNextInstallmentDetailsPage(org.mifos.test.acceptance.framework.loan.ViewNextInstallmentDetailsPage)

Aggregations

ViewNextInstallmentDetailsPage (org.mifos.test.acceptance.framework.loan.ViewNextInstallmentDetailsPage)2 HomePage (org.mifos.test.acceptance.framework.HomePage)1 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)1 TransactionHistoryPage (org.mifos.test.acceptance.framework.loan.TransactionHistoryPage)1 ViewRepaymentSchedulePage (org.mifos.test.acceptance.framework.loan.ViewRepaymentSchedulePage)1 LoginPage (org.mifos.test.acceptance.framework.login.LoginPage)1 SearchResultsPage (org.mifos.test.acceptance.framework.search.SearchResultsPage)1