use of org.mifos.test.acceptance.framework.loan.AttachSurveyPage in project head by mifos.
the class QuestionGroupTestHelper method attachQuestionGroup.
public ClientViewDetailsPage attachQuestionGroup(String clientName, String questionGroupTitle, List<String> sections, Map<String, String> answers) {
AttachSurveyPage attachSurveyPage = navigationHelper.navigateToClientViewDetailsPage(clientName).navigateToAttachSurveyPage();
QuestionnairePage questionnairePage = attachSurveyPage.selectSurvey(questionGroupTitle);
for (String section : sections) {
questionnairePage.verifyTextPresent(section, clientName);
}
for (String question : answers.keySet()) {
questionnairePage.setResponse(question, answers.get(question));
}
return (ClientViewDetailsPage) questionnairePage.submit();
}
use of org.mifos.test.acceptance.framework.loan.AttachSurveyPage in project head by mifos.
the class AttachSurveyLinkTest method attachSurveyToCenter.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void attachSurveyToCenter() throws Exception {
CenterViewDetailsPage centerViewDetailsPage = navigationHelper.navigateToCenterViewDetailsPage("Default Center");
AttachSurveyPage attachSurveyPage = centerViewDetailsPage.navigateToAttachSurveyPage();
attachSurveyPage.verifyPage("selectQuestionnaire");
}
use of org.mifos.test.acceptance.framework.loan.AttachSurveyPage in project head by mifos.
the class AttachSurveyLinkTest method attachSurveyToGroupLoan.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void attachSurveyToGroupLoan() throws Exception {
// ...206 is a group loan account
LoanAccountPage loanAccountDetailPage = navigationHelper.navigateToLoanAccountPage("000100000000011");
AttachSurveyPage attachSurveyPage = loanAccountDetailPage.navigateToAttachSurveyPage();
attachSurveyPage.verifyPage("selectQuestionnaire");
}
use of org.mifos.test.acceptance.framework.loan.AttachSurveyPage in project head by mifos.
the class AttachSurveyLinkTest method attachSurveyToGroup.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void attachSurveyToGroup() throws Exception {
GroupViewDetailsPage groupViewDetailsPage = navigationHelper.navigateToGroupViewDetailsPage("Default Group");
AttachSurveyPage attachSurveyPage = groupViewDetailsPage.navigateToAttachSurveyPage();
attachSurveyPage.verifyPage("selectQuestionnaire");
}
use of org.mifos.test.acceptance.framework.loan.AttachSurveyPage in project head by mifos.
the class ClientViewDetailsPage method getQuestionnairePage.
public QuestionnairePage getQuestionnairePage(String questionGroupTitle) {
AttachSurveyPage attachSurveyPage = navigateToAttachSurveyPage();
QuestionnairePage questionnairePage = attachSurveyPage.selectSurvey(questionGroupTitle);
questionnairePage.verifyPage();
return questionnairePage;
}
Aggregations