use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.
the class ClientTest method createQuestionGroup2.
private void createQuestionGroup2() {
String qG_1 = "CloseClientQG";
String qG_2 = "CloseClientQG2";
AdminPage adminPage = navigationHelper.navigateToAdminPage();
CreateQuestionGroupPage createQuestionGroupPage = adminPage.navigateToCreateQuestionGroupPage();
CreateQuestionGroupParameters parameters;
parameters = questionGroupTestHelper.getCreateQuestionGroupParameters(qG_1, asList(question1, question2, question3, question4, question5), "Close Client", "Section1");
parameters.addExistingQuestion("Section2", question7);
parameters.addExistingQuestion("Section2", question6);
parameters.addExistingQuestion("Section2", question9);
parameters.addExistingQuestion("Section2", question8);
for (String section : parameters.getExistingQuestions().keySet()) {
createQuestionGroupPage.addExistingQuestion(section, parameters.getExistingQuestions().get(section));
}
createQuestionGroupPage.markEveryOtherQuestionsMandatory(asList(question1));
createQuestionGroupPage.submit(parameters);
adminPage = navigationHelper.navigateToAdminPage();
createQuestionGroupPage = adminPage.navigateToCreateQuestionGroupPage();
parameters = questionGroupTestHelper.getCreateQuestionGroupParameters(qG_2, asList(question1, question6, question3, question5), "Close Client", "Section1");
parameters.addExistingQuestion("Section2", question9);
parameters.addExistingQuestion("Section2", question10);
parameters.addExistingQuestion("Section2", question8);
parameters.addExistingQuestion("Section2", question11);
for (String section : parameters.getExistingQuestions().keySet()) {
createQuestionGroupPage.addExistingQuestion(section, parameters.getExistingQuestions().get(section));
}
createQuestionGroupPage.submit(parameters);
}
use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.
the class ClientTest method testDeactivateQuestion.
private void testDeactivateQuestion(String question) {
AdminPage adminPage = navigationHelper.navigateToAdminPage();
ViewAllQuestionsPage viewAllQuestionsPage = adminPage.navigateToViewAllQuestions();
QuestionDetailPage questionDetailPage = viewAllQuestionsPage.navigateToQuestionDetail(question);
EditQuestionPage editQuestionPage = questionDetailPage.navigateToEditQuestionPage();
questionDetailPage = editQuestionPage.deactivate();
}
use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.
the class ClientTest method testActivateQuestion.
private void testActivateQuestion(String question) {
AdminPage adminPage = navigationHelper.navigateToAdminPage();
ViewAllQuestionsPage viewAllQuestionsPage = adminPage.navigateToViewAllQuestions();
QuestionDetailPage questionDetailPage = viewAllQuestionsPage.navigateToQuestionDetail(question);
EditQuestionPage editQuestionPage = questionDetailPage.navigateToEditQuestionPage();
questionDetailPage = editQuestionPage.activate();
}
use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.
the class ClientTest method verifyAcceptedPaymentTypes.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// http://mifosforge.jira.com/browse/MIFOSTEST-248
@Test(enabled = true)
public void verifyAcceptedPaymentTypes() throws Exception {
// When
String groupName = "group1";
CreateClientEnterPersonalDataPage.SubmitFormParameters clientParams = new CreateClientEnterPersonalDataPage.SubmitFormParameters();
clientParams = clientParams();
clientParams.setFirstName("John");
clientParams.setLastName("Doe123");
ClientViewDetailsPage clientViewDetailsPage = clientTestHelper.createNewClient(groupName, clientParams);
clientViewDetailsPage.verifyHeading("John Doe123");
AdminPage adminPage = navigationHelper.navigateToAdminPage();
DefineAcceptedPaymentTypesPage defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.CHEQUE);
adminPage = navigationHelper.navigateToAdminPage();
defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.VOUCHER);
ApplyPaymentPage applyPaymentPage = navigationHelper.navigateToClientViewDetailsPage("John Doe123").navigateToViewClientChargesDetail().navigateToApplyPayments();
// Then
applyPaymentPage.verifyModeOfPayments();
}
use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.
the class ViewLatenessAndDormancyDefinitionTest method verifyViewLatenessAndDormancyDefinitionPage.
@Test(enabled = true)
public //http://mifosforge.jira.com/browse/MIFOSTEST-705
void verifyViewLatenessAndDormancyDefinitionPage() {
//When
ViewLatenessAndDormancyDefinitionPage viewLatenessAndDormancyDefinitionPage = navigationHelper.navigateToAdminPage().navigateToViewLatenessAndDormancyDefinitionPage();
viewLatenessAndDormancyDefinitionPage.submitWithInvalidData("aa", "bb");
//Then
viewLatenessAndDormancyDefinitionPage.verifyIsDormancyErrorDisplayed(true);
viewLatenessAndDormancyDefinitionPage.verifyIsLatenessErrorDisplayed(true);
//When
AdminPage adminPage = viewLatenessAndDormancyDefinitionPage.submitAndNavigateToAdminPage("20", "10");
viewLatenessAndDormancyDefinitionPage = adminPage.navigateToViewLatenessAndDormancyDefinitionPage();
//Then
viewLatenessAndDormancyDefinitionPage.verifyLatenessAndDormancy("20", "10");
//When
adminPage = viewLatenessAndDormancyDefinitionPage.submitAndNavigateToAdminPage("10", "30");
// MIFOS-4774
adminPage.navigateToViewLatenessAndDormancyDefinitionPage().submitAndNavigateToAdminPage("1234", "4321").navigateToViewLatenessAndDormancyDefinitionPage().submitAndNavigateToAdminPage();
}
Aggregations