Search in sources :

Example 1 with EditAccountStatusConfirmationPage

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;
}
Also used : EditAccountStatusConfirmationPage(org.mifos.test.acceptance.framework.loan.EditAccountStatusConfirmationPage) AccountChangeStatusPage(org.mifos.test.acceptance.framework.loan.AccountChangeStatusPage) SavingsAccountDetailPage(org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage)

Example 2 with EditAccountStatusConfirmationPage

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());
}
Also used : EditAccountStatusConfirmationPage(org.mifos.test.acceptance.framework.loan.EditAccountStatusConfirmationPage) AccountChangeStatusPage(org.mifos.test.acceptance.framework.loan.AccountChangeStatusPage) LoanAccountPage(org.mifos.test.acceptance.framework.loan.LoanAccountPage) EditPreviewLoanAccountPage(org.mifos.test.acceptance.framework.loan.EditPreviewLoanAccountPage)

Aggregations

AccountChangeStatusPage (org.mifos.test.acceptance.framework.loan.AccountChangeStatusPage)2 EditAccountStatusConfirmationPage (org.mifos.test.acceptance.framework.loan.EditAccountStatusConfirmationPage)2 EditPreviewLoanAccountPage (org.mifos.test.acceptance.framework.loan.EditPreviewLoanAccountPage)1 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)1 SavingsAccountDetailPage (org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage)1