use of org.mifos.test.acceptance.framework.group.CreateGroupConfirmationPage in project head by mifos.
the class QuestionResponsePage method navigateToCreateGroupDetailsPage.
public GroupViewDetailsPage navigateToCreateGroupDetailsPage(String status) {
CreateGroupConfirmationPage confirmationPage = submitNewGroupForApproval();
confirmationPage.verifyPage();
GroupViewDetailsPage groupDetailsPage = confirmationPage.navigateToGroupDetailsPage();
groupDetailsPage.verifyStatus(status);
return groupDetailsPage;
}
use of org.mifos.test.acceptance.framework.group.CreateGroupConfirmationPage in project head by mifos.
the class GroupTest method createGroupInPendingApprovalStateTest.
@Test(singleThreaded = true, groups = { "group", "acceptance", "ui", "no_db_unit" })
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public // http://mifosforge.jira.com/browse/MIFOSTEST-301
void createGroupInPendingApprovalStateTest() throws Exception {
//When
CreateGroupEntryPage groupEntryPage = loginAndNavigateToNewGroupPage();
CreateGroupSubmitParameters formParameters = getGenericGroupFormParameters();
CreateGroupConfirmationPage confirmationPage = groupEntryPage.submitNewGroupForApproval(formParameters);
confirmationPage.verifyPage();
GroupViewDetailsPage groupDetailsPage = confirmationPage.navigateToGroupDetailsPage();
//Then
groupDetailsPage.verifyStatus("Application Pending*");
//When
CustomerChangeStatusPage customerChangeStatusPage = groupDetailsPage.navigateToEditGroupStatusPage();
EditCustomerStatusParameters editCustomerStatusParameters = new EditCustomerStatusParameters();
editCustomerStatusParameters.setGroupStatus(GroupStatus.ACTIVE);
editCustomerStatusParameters.setNote("test");
CustomerChangeStatusPreviewPage customerChangeStatusPreviewPage = customerChangeStatusPage.setChangeStatusParametersAndSubmit(editCustomerStatusParameters);
GroupViewDetailsPage detailsPage = customerChangeStatusPreviewPage.navigateToGroupDetailsPage();
//Then
detailsPage.verifyStatus("Active*");
}
use of org.mifos.test.acceptance.framework.group.CreateGroupConfirmationPage in project head by mifos.
the class GroupTest method changeCenterMembership.
@Test(singleThreaded = true, groups = { "group", "acceptance", "ui", "no_db_unit" })
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void changeCenterMembership() throws Exception {
CreateGroupEntryPage groupEntryPage = loginAndNavigateToNewGroupPage();
CreateGroupSubmitParameters formParameters = getGenericGroupFormParameters();
CreateGroupConfirmationPage confirmationPage = groupEntryPage.submitNewGroupForApproval(formParameters);
confirmationPage.verifyPage();
GroupViewDetailsPage groupDetailsPage = confirmationPage.navigateToGroupDetailsPage();
CenterSearchTransferGroupPage centerSearchTransfer = groupDetailsPage.editCenterMembership();
centerSearchTransfer.verifyPage();
ConfirmCenterMembershipPage confirmMembership = centerSearchTransfer.search("WeeklyMeetingCenter");
confirmMembership.verifyPage();
groupDetailsPage = confirmMembership.submitMembershipChange();
groupDetailsPage.verifyLoanOfficer(" Loan officer: loan officer");
}
use of org.mifos.test.acceptance.framework.group.CreateGroupConfirmationPage in project head by mifos.
the class GroupTest method createGroupInPartialApplicationStateTest.
@Test(singleThreaded = true, groups = { "group", "acceptance", "ui", "no_db_unit" })
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void createGroupInPartialApplicationStateTest() throws Exception {
//When
CreateGroupEntryPage groupEntryPage = loginAndNavigateToNewGroupPage();
CreateGroupSubmitParameters formParameters = getGenericGroupFormParameters();
CreateGroupConfirmationPage confirmationPage = groupEntryPage.submitNewGroupForPartialApplication(formParameters);
confirmationPage.verifyPage();
GroupViewDetailsPage groupDetailsPage = confirmationPage.navigateToGroupDetailsPage();
//Then
groupDetailsPage.verifyStatus("Partial Application*");
//When
CustomerChangeStatusPage customerChangeStatusPage = groupDetailsPage.navigateToEditGroupStatusPage();
EditCustomerStatusParameters editCustomerStatusParameters = new EditCustomerStatusParameters();
editCustomerStatusParameters.setGroupStatus(GroupStatus.PENDING_APPROVAL);
editCustomerStatusParameters.setNote("test");
CustomerChangeStatusPreviewPage customerChangeStatusPreviewPage = customerChangeStatusPage.setChangeStatusParametersAndSubmit(editCustomerStatusParameters);
GroupViewDetailsPage detailsPage = customerChangeStatusPreviewPage.navigateToGroupDetailsPage();
//Then
detailsPage.verifyStatus("Application Pending Approval*");
}
Aggregations