use of org.mifos.test.acceptance.framework.client.ClientViewDetailsPage 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.client.ClientViewDetailsPage in project head by mifos.
the class ClientTestHelper method addClientToGroup.
public void addClientToGroup(String clientName, String groupName) {
ClientViewDetailsPage clientViewDetailsPage = navigateToGroupSearchAddClientResult(clientName, groupName).selectGroupToAdd(groupName).submitAddGroup();
clientViewDetailsPage.verifyGroupMembership(groupName);
String clientMeetingschedule = clientViewDetailsPage.getMeetingSchedule();
navigationHelper.navigateToGroupViewDetailsPage(groupName).verifyMeetingSchedule(clientMeetingschedule);
}
use of org.mifos.test.acceptance.framework.client.ClientViewDetailsPage in project head by mifos.
the class QuestionGroupTestHelper method editResponses.
public void editResponses(ClientViewDetailsPage clientViewDetailsPage, int id, Map<String, String> answers) {
QuestionGroupResponsePage questionGroupResponsePage = clientViewDetailsPage.navigateToQuestionGroupResponsePage(id);
QuestionnairePage questionnairePage = questionGroupResponsePage.navigateToEditResponses();
for (String question : answers.keySet()) {
questionnairePage.setResponse(question, answers.get(question));
}
ClientViewDetailsPage clientViewDetailsPage2 = (ClientViewDetailsPage) questionnairePage.submit();
if (clientViewDetailsPage2 != null && clientViewDetailsPage2.getQuestionGroupInstances() != null && clientViewDetailsPage2.getQuestionGroupInstances().size() > 2) {
Assert.assertEquals(clientViewDetailsPage2.getQuestionGroupInstances().get(2).getName(), "TestQuestionGroup");
}
}
use of org.mifos.test.acceptance.framework.client.ClientViewDetailsPage in project head by mifos.
the class ClientTestHelper method editQuestionGroupResponses.
public ClientViewDetailsPage editQuestionGroupResponses(ClientViewDetailsPage clientViewDetailsPage, String numberSection, String locator, String response) {
ViewQuestionResponseDetailPage viewQuestionResponseDetailPage = clientViewDetailsPage.navigateToViewAdditionalInformationPage();
viewQuestionResponseDetailPage.verifyPage();
QuestionnairePage questionnairePage = viewQuestionResponseDetailPage.navigateToEditSection(numberSection);
questionnairePage.verifyPage();
selenium.type(locator, response);
ClientViewDetailsPage clientViewDetailsPage2 = (ClientViewDetailsPage) questionnairePage.submit();
clientViewDetailsPage2.verifyPage("ViewClientDetails");
return clientViewDetailsPage2;
}
use of org.mifos.test.acceptance.framework.client.ClientViewDetailsPage 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);
}
Aggregations