use of org.mifos.test.acceptance.framework.loan.EditPreviewLoanAccountPage in project head by mifos.
the class LoanTestHelper method changeLoanAccountInformation.
/**
* TODO: Create a helper for creating a GLIM loan account.
*/
/**
* Edits the loan account with id loanId and updates its settings with the ones in params.
* @param loanId The account id.
* @param accountSubmitParameters The create loan parameters.
* @param editAccountParameters The edit loan parameters.
* @return edit preview loan account page
*/
public LoanAccountPage changeLoanAccountInformation(String loanId, CreateLoanAccountSubmitParameters accountSubmitParameters, EditLoanAccountInformationParameters editAccountParameters) {
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage(loanId);
EditLoanAccountInformationPage editLoanAccountInformationPage = loanAccountPage.navigateToEditAccountInformation();
EditPreviewLoanAccountPage editPreviewLoanAccountPage = editLoanAccountInformationPage.editAccountParams(accountSubmitParameters, editAccountParameters).submitAndNavigateToAccountInformationPreviewPage();
loanAccountPage = editPreviewLoanAccountPage.submitAndNavigateToLoanAccountPage();
loanAccountPage.verifyLoanDetails(accountSubmitParameters, editAccountParameters);
return loanAccountPage;
}
use of org.mifos.test.acceptance.framework.loan.EditPreviewLoanAccountPage in project head by mifos.
the class CreateGLIMLoanAccountTest method checkGLIMAccountEmptyPurpose.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true)
public void checkGLIMAccountEmptyPurpose() throws Exception {
CreateLoanAccountSearchParameters searchParameters = new CreateLoanAccountSearchParameters();
searchParameters.setSearchString("Default Group");
searchParameters.setLoanProduct("WeeklyGroupFlatLoanWithOnetimeFee");
CreateLoanAccountEntryPage loanAccountEntryPage = loanTestHelper.navigateToCreateLoanAccountEntryPage(searchParameters);
loanAccountEntryPage.selectGLIMClients(0, "Stu1233266299995 Client1233266299995 Client Id: 0002-000000012", "9999", "0012-Sheep Purchase");
loanAccountEntryPage.selectGLIMClients(1, "Stu1233266309851 Client1233266309851 Client Id: 0002-000000013", "99999");
loanAccountEntryPage.selectGLIMClients(2, "Stu1233266319760 Client1233266319760 Client Id: 0002-000000014", "99999");
CreateLoanAccountReviewInstallmentPage createLoanAccountReviewInstallmentPage = loanAccountEntryPage.navigateToReviewInstallmentsPage();
CreateLoanAccountPreviewPage createLoanAccountPreviewPage = createLoanAccountReviewInstallmentPage.clickPreviewAndGoToReviewLoanAccountPage();
CreateLoanAccountConfirmationPage createLoanAccountConfirmationPage = createLoanAccountPreviewPage.submitForApprovalAndNavigateToConfirmationPage();
LoanAccountPage loanAccountPage = createLoanAccountConfirmationPage.navigateToLoanAccountDetailsPage();
String[] purposes = { "0012-Sheep Purchase", "-", "-" };
loanAccountPage.verifyGLIMPurpose(purposes);
loanAccountPage.verifyGLIMIndividualScheduleLinks(3, true);
EditPreviewLoanAccountPage previewLoanAccountPage = loanAccountPage.navigateToEditAccountInformation().submitAndNavigateToAccountInformationPreviewPage();
previewLoanAccountPage.verifyGLIMPurpose(purposes);
}
use of org.mifos.test.acceptance.framework.loan.EditPreviewLoanAccountPage in project head by mifos.
the class EditLoanAccountTest method editLoanAccount.
private LoanAccountPage editLoanAccount(String accountID, EditLoanAccountInformationParameters params) {
NavigationHelper helper = new NavigationHelper(selenium);
LoanAccountPage loanAccountPage = helper.navigateToLoanAccountPage(accountID);
EditLoanAccountInformationPage editAccountInformationPage = loanAccountPage.navigateToEditAccountInformation();
editAccountInformationPage.editExternalID(params);
EditPreviewLoanAccountPage editPreviewLoanAccountPage = editAccountInformationPage.submitAndNavigateToAccountInformationPreviewPage();
loanAccountPage = editPreviewLoanAccountPage.submitAndNavigateToLoanAccountPage();
return loanAccountPage;
}
Aggregations