use of org.mifos.test.acceptance.framework.loan.EditAccountStatusConfirmationPage in project head by mifos.
the class SavingsAccountHelper method changeStatus.
public SavingsAccountDetailPage changeStatus(String savingsId, EditAccountStatusParameters editAccountStatusParameters) {
SavingsAccountDetailPage savingsAccountDetailPage = navigationHelper.navigateToSavingsAccountDetailPage(savingsId);
AccountChangeStatusPage accountChangeStatusPage = savingsAccountDetailPage.navigateToEditAccountStatus();
EditAccountStatusConfirmationPage editAccountStatusConfirmationPage = accountChangeStatusPage.setChangeStatusParametersAndSubmit(editAccountStatusParameters);
savingsAccountDetailPage = editAccountStatusConfirmationPage.submitAndNavigateToSavingAccountPage();
savingsAccountDetailPage.verifyStatus(editAccountStatusParameters.getAccountStatus().getStatusText());
return savingsAccountDetailPage;
}
use of org.mifos.test.acceptance.framework.loan.EditAccountStatusConfirmationPage in project head by mifos.
the class LoanTestHelper method changeLoanAccountStatusProvidingQuestionGroupResponses.
public void changeLoanAccountStatusProvidingQuestionGroupResponses(String loanId, EditLoanAccountStatusParameters params, QuestionResponseParameters responseParameters) {
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage(loanId);
AccountChangeStatusPage accountChangeStatusPage = loanAccountPage.navigateToEditAccountStatus();
EditAccountStatusConfirmationPage editAccountStatusConfirmationPage = accountChangeStatusPage.submitAndNavigateToNextPage(params);
if (responseParameters != null) {
populateQuestionGroupResponses(responseParameters);
}
loanAccountPage = editAccountStatusConfirmationPage.submitAndNavigateToLoanAccountPage();
loanAccountPage.verifyStatus(params.getStatus(), params.getCancelReason());
}
Aggregations