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");
}
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");
}
Aggregations