use of org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage in project head by mifos.
the class UpdateCustomPropertiesTest method verifyPropertyPendingApprovalStateEnabledForSavingsAndLoanAccounts.
/*
* FIXME - keithw - test passes when run individually but not as part of ci build. it appears that question groups data is not
* cleaned up right as instead of stepping to review installments, the questionnaire page is presented.
*/
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
//http://mifosforge.jira.com/browse/MIFOSTEST-215
@Test(enabled = true)
public void verifyPropertyPendingApprovalStateEnabledForSavingsAndLoanAccounts() throws Exception {
//Given
propertiesHelper.setSavingsPendingApprovalStateEnabled("true");
propertiesHelper.setLoanPendingApprovalStateEnabled("true");
propertiesHelper.setGroupPendingApprovalStateEnabled("true");
//When
CreateSavingsAccountSearchParameters searchParameters = new CreateSavingsAccountSearchParameters();
searchParameters.setSearchString("UpdateCustomProperties TestClient");
searchParameters.setSavingsProduct("MonthlyClientSavingsAccount");
CreateSavingsAccountSubmitParameters submitAccountParameters = new CreateSavingsAccountSubmitParameters();
submitAccountParameters.setAmount("248.0");
SavingsAccountDetailPage savingsAccountPage = savingsAccountHelper.createSavingsAccount(searchParameters, submitAccountParameters);
savingsAccountPage.verifyPage();
//Then
savingsAccountPage.verifySavingsAmount(submitAccountParameters.getAmount());
savingsAccountPage.verifySavingsProduct(searchParameters.getSavingsProduct());
savingsAccountPage.verifyStatus("Application Pending Approval");
//when
CreateLoanAccountSearchParameters searchParameters2 = new CreateLoanAccountSearchParameters();
searchParameters2.setSearchString("UpdateCustomProperties TestClient");
searchParameters2.setLoanProduct("ClientEmergencyLoan");
CreateLoanAccountSubmitParameters submitAccountParameters2 = new CreateLoanAccountSubmitParameters();
submitAccountParameters2.setAmount("2765.0");
submitAccountParameters2.setGracePeriodTypeNone(true);
LoanTestHelper loanTestHelper = new LoanTestHelper(selenium);
LoanAccountPage loanAccountPage = loanTestHelper.createLoanAccount(searchParameters2, submitAccountParameters2);
loanAccountPage.verifyStatus("Application Pending Approval");
}
use of org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage in project head by mifos.
the class SavingsAccountHelper method closeSavingsAccount.
public SavingsAccountDetailPage closeSavingsAccount(String savingsAccountID, String notes) {
NavigationHelper helper = new NavigationHelper(selenium);
SavingsAccountDetailPage savingsAccountDetailPage = helper.navigateToSavingsAccountDetailPage(savingsAccountID);
savingsAccountDetailPage.verifyPage();
SavingsCloseAccountPage savingsCloseAccountPage = savingsAccountDetailPage.navigateToCloseAccount();
savingsCloseAccountPage.verifyPage();
savingsAccountDetailPage = savingsCloseAccountPage.closeSavingsAccount(notes);
savingsAccountDetailPage.verifyPage();
return savingsAccountDetailPage;
}
use of org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage in project head by mifos.
the class SavingsAccountHelper method createSavingsAccountWithQG.
public SavingsAccountDetailPage createSavingsAccountWithQG(CreateSavingsAccountSearchParameters searchParameters, CreateSavingsAccountSubmitParameters submitAccountParameters) {
CreateSavingsAccountSearchPage createSavingsAccountSearchPage = navigateToCreateSavingsAccountSearchPage();
createSavingsAccountSearchPage.verifyPage();
CreateSavingsAccountEntryPage createSavingsAccountEntryPage = createSavingsAccountSearchPage.searchAndNavigateToCreateSavingsAccountPage(searchParameters);
createSavingsAccountEntryPage.verifyPage();
CreateSavingsAccountConfirmationPage createSavingsAccountConfirmationPage = createSavingsAccountEntryPage.submitWithQGAndNavigateToSavingsAccountConfirmationPage(submitAccountParameters);
createSavingsAccountConfirmationPage.verifyPage();
SavingsAccountDetailPage savingsAccountDetailPage = createSavingsAccountConfirmationPage.navigateToSavingsAccountDetailsPage();
savingsAccountDetailPage.verifyPage();
return savingsAccountDetailPage;
}
use of org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage in project head by mifos.
the class SavingsAccountHelper method makeDepositOrWithdrawalOnSavingsAccount.
public SavingsAccountDetailPage makeDepositOrWithdrawalOnSavingsAccount(String savingsAccountID, DepositWithdrawalSavingsParameters params) {
NavigationHelper helper = new NavigationHelper(selenium);
SavingsAccountDetailPage savingsAccountDetailPage = helper.navigateToSavingsAccountDetailPage(savingsAccountID);
savingsAccountDetailPage.verifyPage();
SavingsDepositWithdrawalPage savingsDepositWithdrawalPage = savingsAccountDetailPage.navigateToDepositWithdrawalPage();
savingsDepositWithdrawalPage.verifyPage();
SavingsDepositWithdrawalConfirmationPage savingsDepositWithdrawalConfirmationPage = savingsDepositWithdrawalPage.submitAndNavigateToDepositWithdrawalConfirmationPage(params);
savingsDepositWithdrawalConfirmationPage.verifyPage();
savingsAccountDetailPage = savingsDepositWithdrawalConfirmationPage.submitAndNavigateToSavingsAccountDetailPage();
return savingsAccountDetailPage;
}
use of org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage in project head by mifos.
the class SavingsAccountHelper method fillQuestionGroupsDuringClosingSavingsAccount.
public SavingsAccountDetailPage fillQuestionGroupsDuringClosingSavingsAccount(String savingsId, QuestionResponseParameters questionResponseParameters, String[] questionsExist) {
NavigationHelper helper = new NavigationHelper(selenium);
SavingsAccountDetailPage savingsAccountDetailPage = helper.navigateToSavingsAccountDetailPage(savingsId);
savingsAccountDetailPage.verifyPage();
SavingsCloseAccountPage savingsCloseAccountPage = savingsAccountDetailPage.navigateToCloseAccount();
savingsCloseAccountPage.verifyPage();
CaptureQuestionResponse captureQuestionResponse = savingsCloseAccountPage.submitAndNavigateToQuestionnairePage("Closing Savings with QG");
captureQuestionResponse.verifyQuestionsExists(questionsExist);
captureQuestionResponse.populateAnswers(questionResponseParameters);
captureQuestionResponse.navigateToNextPageSavingsAccountClosing();
savingsAccountDetailPage = savingsCloseAccountPage.clickCloseButton();
savingsAccountDetailPage.verifyPage();
return savingsAccountDetailPage;
}
Aggregations