use of org.mifos.test.acceptance.framework.client.ClientViewDetailsPage in project head by mifos.
the class LoanTestHelper method verifyLoansAreNotOnClientsLoanLists.
public void verifyLoansAreNotOnClientsLoanLists(String[] clients, String productName) {
ClientsAndAccountsHomepage clientsAndAccountsHomepage = navigationHelper.navigateToClientsAndAccountsPage();
for (String client : clients) {
ClientViewDetailsPage clientViewDetailsPage = clientsAndAccountsHomepage.searchForClient(client).navigateToSearchResult(client);
clientViewDetailsPage.verifyLoanDoesntExist(productName);
clientsAndAccountsHomepage = clientViewDetailsPage.navigateToClientsAndAccountsPageUsingHeaderTab();
}
}
use of org.mifos.test.acceptance.framework.client.ClientViewDetailsPage in project head by mifos.
the class ViewClosedAccountsTest method navigateToClientDetailsFromClosedAccounts.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void navigateToClientDetailsFromClosedAccounts() throws Exception {
LoginPage loginPage = appLauncher.launchMifos();
HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
homePage.verifyPage();
SearchResultsPage searchResultsPage = homePage.search("Client1233266063395");
searchResultsPage.verifyPage();
ClientViewDetailsPage clientViewDetailsPage = searchResultsPage.navigateToClientViewDetailsPage("link=Stu*");
ClosedAccountsPage closedAccountsPage = clientViewDetailsPage.navigateToClosedAccountsPage();
closedAccountsPage.verifyPage();
closedAccountsPage.returnToClientViewDetailsPage();
}
use of org.mifos.test.acceptance.framework.client.ClientViewDetailsPage in project head by mifos.
the class ClientTest method moveClientToGroupWithDifferentMeetingFrequencyTest.
@Test(enabled = true)
public void moveClientToGroupWithDifferentMeetingFrequencyTest() {
//Given
String startGroupName = "GroupWeekly";
String destinationGroupName = "MonthlyGroup";
//client
CreateClientEnterPersonalDataPage.SubmitFormParameters clientParams = clientParams();
clientParams.setFirstName("John");
clientParams.setLastName("DoeTest");
ClientViewDetailsPage clientPage = clientTestHelper.createNewClient(startGroupName, clientParams);
//When
clientPage.navigateToEditRemoveGroupMembership().searchGroup(destinationGroupName).selectGroupToAdd(destinationGroupName).submitAddGroup();
//Then
clientPage.verifyGroupMembership(destinationGroupName);
}
use of org.mifos.test.acceptance.framework.client.ClientViewDetailsPage in project head by mifos.
the class ClientTest method addingMemeberOnHoldStatusToGroupWithDiffrentStatuses.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
//TODO http://mifosforge.jira.com/browse/MIFOS-5081
@Test(enabled = false)
public void addingMemeberOnHoldStatusToGroupWithDiffrentStatuses() throws Exception {
String groupName = "testGroup";
String clientName = "test";
CreateGroupSubmitParameters groupParams = new CreateGroupSubmitParameters();
groupParams.setGroupName(groupName);
EditCustomerStatusParameters editCustomerStatusParameters = new EditCustomerStatusParameters();
editCustomerStatusParameters.setNote("change status");
// When
ClientViewDetailsPage clientDetailsPage = clientTestHelper.createClientAndVerify("loan officer", "MyOfficeDHMFT");
clientTestHelper.changeCustomerStatus(clientDetailsPage, ClientStatus.ACTIVE);
clientTestHelper.changeCustomerStatus(clientDetailsPage, ClientStatus.ON_HOLD);
groupTestHelper.createNewGroupPartialApplication("Default Center", groupParams);
// Then
clientTestHelper.addClientToGroupWithErrorGroupLowerStatus(clientName, groupName);
// When
editCustomerStatusParameters.setGroupStatus(GroupStatus.PENDING_APPROVAL);
groupTestHelper.changeGroupStatus(groupName, editCustomerStatusParameters);
// Then
clientTestHelper.addClientToGroupWithErrorGroupLowerStatus(clientName, groupName);
// When
editCustomerStatusParameters.setGroupStatus(GroupStatus.ACTIVE);
groupTestHelper.changeGroupStatus(groupName, editCustomerStatusParameters);
// Then
clientTestHelper.addClientToGroup(clientName, groupName);
}
use of org.mifos.test.acceptance.framework.client.ClientViewDetailsPage in project head by mifos.
the class ClientTest method verifySequenceOfClientNamesInPropertiesFile.
/**
* Verify that sequence of client names in the properties file is used for displaying the order of client names in
* the UI http://mifosforge.jira.com/browse/MIFOSTEST-205
*
* @throws Exception
*/
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true)
public void verifySequenceOfClientNamesInPropertiesFile() throws Exception {
String groupName = "group";
CreateClientEnterPersonalDataPage.SubmitFormParameters clientParams = new CreateClientEnterPersonalDataPage.SubmitFormParameters();
clientParams.setSalutation(CreateClientEnterPersonalDataPage.SubmitFormParameters.MRS);
clientParams.setFirstName("firstName");
clientParams.setMiddleName("middleName");
clientParams.setLastName("lastName");
clientParams.setSecondLastName("secondLastName");
clientParams.setDateOfBirthDD("22");
clientParams.setDateOfBirthMM("05");
clientParams.setDateOfBirthYYYY("1987");
clientParams.setGender(CreateClientEnterPersonalDataPage.SubmitFormParameters.FEMALE);
clientParams.setPovertyStatus(CreateClientEnterPersonalDataPage.SubmitFormParameters.POOR);
clientParams.setSpouseNameType(CreateClientEnterPersonalDataPage.SubmitFormParameters.FATHER);
clientParams.setSpouseFirstName("fatherName");
clientParams.setSpouseLastName("fatherLastName");
ClientViewDetailsPage clientViewDetailsPage = clientTestHelper.createNewClient(groupName, clientParams);
clientViewDetailsPage.verifyHeading("firstName middleName lastName secondLastName");
propertiesHelper.setClientsNameSequence("last_name,second_last_name,middle_name,first_name");
clientParams.setFirstName("firstName2");
clientViewDetailsPage = clientTestHelper.createNewClient(groupName, clientParams);
clientViewDetailsPage.verifyHeading("lastName secondLastName middleName firstName2");
propertiesHelper.setClientsNameSequence("first_name,middle_name,last_name,second_last_name");
clientParams.setFirstName("firstName3");
clientViewDetailsPage = clientTestHelper.createNewClient(groupName, clientParams);
clientViewDetailsPage.verifyHeading("firstName3 middleName lastName secondLastName");
}
Aggregations