use of org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPreviewPage 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*");
}
use of org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPreviewPage in project head by mifos.
the class ClientTestHelper method changeCustomerStatus.
public ClientViewDetailsPage changeCustomerStatus(ClientViewDetailsPage clientDetailsPage) {
CustomerChangeStatusPage statusChangePage = clientDetailsPage.navigateToCustomerChangeStatusPage();
EditCustomerStatusParameters editCustomerStatusParameters = new EditCustomerStatusParameters();
editCustomerStatusParameters.setClientStatus(ClientStatus.PARTIAL);
editCustomerStatusParameters.setNote("Status change");
CustomerChangeStatusPreviewPage statusPreviewPage = statusChangePage.setChangeStatusParametersAndSubmit(editCustomerStatusParameters);
ClientViewDetailsPage clientDetailsPage2 = statusPreviewPage.submitAndGotoClientViewDetailsPage();
clientDetailsPage2.verifyStatus(PARTIAL_APPLICATION);
clientDetailsPage2.verifyNotes(editCustomerStatusParameters.getNote());
CustomerChangeStatusPage statusChangePage2 = clientDetailsPage2.navigateToCustomerChangeStatusPage();
editCustomerStatusParameters.setClientStatus(ClientStatus.PENDING_APPROVAL);
editCustomerStatusParameters.setNote("notes");
CustomerChangeStatusPreviewPage statusPreviewPage2 = statusChangePage2.setChangeStatusParametersAndSubmit(editCustomerStatusParameters);
ClientViewDetailsPage clientDetailsPage3 = statusPreviewPage2.submitAndGotoClientViewDetailsPage();
clientDetailsPage3.verifyNotes(editCustomerStatusParameters.getNote());
clientDetailsPage2.verifyStatus(PENDING_APPROVAL);
CustomerChangeStatusPage statusChangePage3 = clientDetailsPage3.navigateToCustomerChangeStatusPage();
editCustomerStatusParameters.setClientStatus(ClientStatus.ACTIVE);
editCustomerStatusParameters.setNote("notes");
CustomerChangeStatusPreviewPage statusPreviewPage3 = statusChangePage3.setChangeStatusParametersAndSubmit(editCustomerStatusParameters);
ClientViewDetailsPage clientDetailsPage4 = statusPreviewPage3.submitAndGotoClientViewDetailsPage();
clientDetailsPage4.verifyNotes(editCustomerStatusParameters.getNote());
clientDetailsPage3.verifyStatus(ACTIVE);
CustomerChangeStatusPage statusChangePage4 = clientDetailsPage4.navigateToCustomerChangeStatusPage();
ClientViewDetailsPage clientDetailsPage5 = statusChangePage4.cancelAndGotoClientViewDetailsPage();
clientDetailsPage5.verifyNotes(editCustomerStatusParameters.getNote());
return clientDetailsPage5;
}
use of org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPreviewPage in project head by mifos.
the class ClientTestHelper method changeCustomerStatus.
public ClientViewDetailsPage changeCustomerStatus(ClientViewDetailsPage clientDetailsPage, ClientStatus targetStatus) {
CustomerChangeStatusPage statusChangePage = clientDetailsPage.navigateToCustomerChangeStatusPage();
EditCustomerStatusParameters editCustomerStatusParameters = new EditCustomerStatusParameters();
editCustomerStatusParameters.setClientStatus(targetStatus);
editCustomerStatusParameters.setNote("Status change");
CustomerChangeStatusPreviewPage statusPreviewPage = statusChangePage.setChangeStatusParametersAndSubmit(editCustomerStatusParameters);
ClientViewDetailsPage newClientDetailsPage = statusPreviewPage.submitAndGotoClientViewDetailsPage();
newClientDetailsPage.verifyStatus(targetStatus.getStatusText());
newClientDetailsPage.verifyNotes(editCustomerStatusParameters.getNote());
return newClientDetailsPage;
}
Aggregations