Search in sources :

Example 6 with CreateClientEnterFamilyDetailsPage

use of org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage in project head by mifos.

the class AddFamilyDetailsTest method addFamilyWithAllNamesTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void addFamilyWithAllNamesTest() throws Exception {
    propertiesHelper.setMaximumNumberOfFamilyMemebers(10);
    CreateClientEnterPersonalDataPage clientPersonalDataPage = clientTestHelper.createClientForFamilyInfo("MyOfficeDHMFT", "11", "12", "1988");
    CreateClientEnterFamilyDetailsPage clientFamilyDataPage = clientPersonalDataPage.submitAndGotoCreateClientEnterFamilyDetailsPage();
    clientFamilyDataPage = clientTestHelper.createFamilyWithAllName("fname", "lname", "mname", "slname", "11", "01", "1987", clientFamilyDataPage);
    CreateClientEnterMfiDataPage nextPage = clientFamilyDataPage.submitAndGotoCreateClientEnterMfiDataPage();
    CreateClientPreviewDataPage clientPreviewDataPage = clientTestHelper.createClientMFIInformationAndGoToPreviewPage("loan officer", nextPage);
    CreateClientEnterFamilyDetailsPage editPage = clientPreviewDataPage.edit();
    editPage.verifyPage("CreateClientFamilyInfo");
}
Also used : CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage) CreateClientPreviewDataPage(org.mifos.test.acceptance.framework.client.CreateClientPreviewDataPage) CreateClientEnterFamilyDetailsPage(org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage) CreateClientEnterMfiDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)

Example 7 with CreateClientEnterFamilyDetailsPage

use of org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage in project head by mifos.

the class AddFamilyDetailsTest method canGoTosubmitAfterPreviewPageTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void canGoTosubmitAfterPreviewPageTest() throws Exception {
    propertiesHelper.setMaximumNumberOfFamilyMemebers(10);
    CreateClientEnterPersonalDataPage clientPersonalDataPage = clientTestHelper.createClientForFamilyInfo("MyOfficeDHMFT", "11", "12", "1988");
    CreateClientEnterFamilyDetailsPage clientFamilyDataPage = clientPersonalDataPage.submitAndGotoCreateClientEnterFamilyDetailsPage();
    clientFamilyDataPage = clientTestHelper.createFamily("fname", "lname", "11", "01", "1987", clientFamilyDataPage);
    CreateClientEnterMfiDataPage nextPage = clientFamilyDataPage.submitAndGotoCreateClientEnterMfiDataPage();
    CreateClientPreviewDataPage clientPreviewDataPage = clientTestHelper.createClientMFIInformationAndGoToPreviewPage("loan officer", nextPage);
    clientPreviewDataPage.submit();
    selenium.click("client_creationConfirmation.link.viewClientDetailsLink");
    selenium.waitForPageToLoad("30000");
    new ClientViewDetailsPage(selenium);
}
Also used : CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage) CreateClientPreviewDataPage(org.mifos.test.acceptance.framework.client.CreateClientPreviewDataPage) CreateClientEnterFamilyDetailsPage(org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) CreateClientEnterMfiDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)

Example 8 with CreateClientEnterFamilyDetailsPage

use of org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage in project head by mifos.

the class AddFamilyDetailsTest method goToPreviewPageTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void goToPreviewPageTest() throws Exception {
    propertiesHelper.setMaximumNumberOfFamilyMemebers(10);
    CreateClientEnterPersonalDataPage clientPersonalDataPage = clientTestHelper.createClientForFamilyInfo("MyOfficeDHMFT", "11", "12", "1988");
    CreateClientEnterFamilyDetailsPage clientFamilyDataPage = clientPersonalDataPage.submitAndGotoCreateClientEnterFamilyDetailsPage();
    clientFamilyDataPage = clientTestHelper.createFamily("fname", "lname", "11", "01", "1987", clientFamilyDataPage);
    CreateClientEnterMfiDataPage nextPage = clientFamilyDataPage.submitAndGotoCreateClientEnterMfiDataPage();
    clientTestHelper.createClientMFIInformationAndGoToPreviewPage("loan officer", nextPage);
    Assert.assertEquals(selenium.getText("displayName"), "fname lname");
}
Also used : CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage) CreateClientEnterFamilyDetailsPage(org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage) CreateClientEnterMfiDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)

Aggregations

CreateClientEnterFamilyDetailsPage (org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage)8 CreateClientEnterPersonalDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)8 CreateClientEnterMfiDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)7 CreateClientPreviewDataPage (org.mifos.test.acceptance.framework.client.CreateClientPreviewDataPage)5 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)2 ClientEditFamilyPage (org.mifos.test.acceptance.framework.client.ClientEditFamilyPage)1 ClientEditFamilyParameters (org.mifos.test.acceptance.framework.client.ClientEditFamilyParameters)1 ClientFamilyEditPreviewPage (org.mifos.test.acceptance.framework.client.ClientFamilyEditPreviewPage)1