use of org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters in project head by mifos.
the class TestDataSetup method setApprovalStatus.
private EditCustomerStatusParameters setApprovalStatus() {
EditCustomerStatusParameters parameters = new EditCustomerStatusParameters();
parameters.setClientStatus(ClientStatus.ACTIVE);
parameters.setNote("For Test");
return parameters;
}
use of org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters in project head by mifos.
the class ClientTestHelper method navigateToQuestionResponsePageWhenCloseClientAccount.
public QuestionResponsePage navigateToQuestionResponsePageWhenCloseClientAccount(String clientName) {
EditCustomerStatusParameters editCustomerStatusParameters = new EditCustomerStatusParameters();
editCustomerStatusParameters.setClientStatus(ClientStatus.CLOSED);
editCustomerStatusParameters.setClientCloseReason(ClientCloseReason.LEFT_PROGRAM);
editCustomerStatusParameters.setNote("Close client account");
ClientViewDetailsPage clientDetailsPage = navigationHelper.navigateToClientViewDetailsPage(clientName);
CustomerChangeStatusPage statusChangePage = clientDetailsPage.navigateToCustomerChangeStatusPage();
return statusChangePage.changeStatusAndNavigateToQuestionResponsePage(editCustomerStatusParameters);
}
use of org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters in project head by mifos.
the class ClientTestHelper method closeClientWithQG.
public ClientViewDetailsPage closeClientWithQG(String clientName, QuestionResponseParameters responseParamsAfterModyfication) {
EditCustomerStatusParameters editCustomerStatusParameters = new EditCustomerStatusParameters();
editCustomerStatusParameters.setClientStatus(ClientStatus.CLOSED);
editCustomerStatusParameters.setClientCloseReason(ClientCloseReason.LEFT_PROGRAM);
editCustomerStatusParameters.setNote("Close client account");
ClientViewDetailsPage clientDetailsPage = navigationHelper.navigateToClientViewDetailsPage(clientName);
CustomerChangeStatusPage statusChangePage = clientDetailsPage.navigateToCustomerChangeStatusPage();
QuestionResponsePage questionResponsePage = statusChangePage.changeStatusAndNavigateToQuestionResponsePage(editCustomerStatusParameters);
questionResponsePage.populateAnswers(responseParamsAfterModyfication);
questionResponsePage.navigateToNextPage();
new CustomerChangeStatusPreviewPage(selenium).submitAndGotoClientViewDetailsPage();
return new ClientViewDetailsPage(selenium);
}
use of org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters in project head by mifos.
the class CreateMultipleLoanAccountTest method verifyInactiveBranchesOfficersCentersDoesntAppearOnSearch.
/**
* Verify that only "Active" branches, centers and loan officers are available
* on the Search field and "Loan Instances" field populates with the names
* of loan instances matching the frequency of the center selected.
* http://mifosforge.jira.com/browse/MIFOSTEST-59
*
* @throws Exception
*/
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void verifyInactiveBranchesOfficersCentersDoesntAppearOnSearch() throws Exception {
EditCustomerStatusParameters customerStatusParams = new EditCustomerStatusParameters();
customerStatusParams.setCenterStatus(CenterStatus.INACTIVE);
customerStatusParams.setNote("note");
CreateLoanAccountsSearchPage multipleAccPage = navigateToCreateMultipleLoanAccountsSearchPage();
multipleAccPage.selectBranchOfficerAndCenter("branch2", "loanofficerbranch2 loanofficerbranch2", "branch2 center");
userHelper.changeUserStatus("loanofficerbranch2 loanofficerbranch2", EditUserDataPage.STATUS_INACTIVE);
centerTestHelper.changeCenterStatus("branch2 center", customerStatusParams);
officeHelper.changeOfficeStatus("branch2", OfficeEditInformationPage.STATUS_INACTIVE);
multipleAccPage = navigateToCreateMultipleLoanAccountsSearchPage();
multipleAccPage.verifyBranchNotInSelectOptions("branch2");
officeHelper.changeOfficeStatus("branch2", OfficeEditInformationPage.STATUS_ACTIVE);
multipleAccPage = navigateToCreateMultipleLoanAccountsSearchPage();
multipleAccPage.verifyOfficerNotInSelectOptions("branch2", "loanofficerbranch2 loanofficerbranch2");
multipleAccPage.verifyCenterIsNotInSelectOptions("branch2", "branch2 center");
}
use of org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters in project head by mifos.
the class ClientTest method changeClientStatusToCancelWithReason.
private ClientViewDetailsPage changeClientStatusToCancelWithReason(String note, CancelReason reason, ClientViewDetailsPage clientDetailsPage) {
String STATUS_CANCELLED = "Cancelled";
//prepare parameters
EditCustomerStatusParameters statusParameters = new EditCustomerStatusParameters();
statusParameters.setClientStatus(ClientStatus.CANCELLED);
statusParameters.setNote(note);
statusParameters.setCancelReason(reason);
//change status
ClientViewDetailsPage newClientDetailsPage = clientTestHelper.changeCustomerStatus(clientDetailsPage.getHeading(), statusParameters);
//verify that status has changed
newClientDetailsPage.verifyStatus(STATUS_CANCELLED);
return clientDetailsPage;
}
Aggregations