Search in sources :

Example 1 with CreateClientEnterFamilyDetailsPage

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

the class AddFamilyDetailsTest method verifyCanAddAndDeleteRow.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void verifyCanAddAndDeleteRow() throws Exception {
    CreateClientEnterPersonalDataPage clientPersonalDataPage = clientTestHelper.createClientForFamilyInfo("MyOfficeDHMFT", "11", "12", "1988");
    CreateClientEnterFamilyDetailsPage clientFamilyDataPage = clientPersonalDataPage.submitAndGotoCreateClientEnterFamilyDetailsPage();
    clientFamilyDataPage.addRow();
    Assert.assertTrue(selenium.isElementPresent("familyRelationship[1]"), "The element for familyRelationship in the added row was not found");
    clientFamilyDataPage = clientFamilyDataPage.deleteRow();
    Assert.assertFalse(selenium.isElementPresent("familyRelationship[1]"), "The element for familyRelationship in the deleted row was found");
}
Also used : CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage) CreateClientEnterFamilyDetailsPage(org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage)

Example 2 with CreateClientEnterFamilyDetailsPage

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

the class AddFamilyDetailsTest method goToEditAfterPreviewPageTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void goToEditAfterPreviewPageTest() 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);
    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 3 with CreateClientEnterFamilyDetailsPage

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

the class AddFamilyDetailsTest method verifyNoLivingStatus.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void verifyNoLivingStatus() throws Exception {
    CreateClientEnterPersonalDataPage clientPersonalDataPage = clientTestHelper.createClientForFamilyInfo("MyOfficeDHMFT", "11", "12", "1988");
    CreateClientEnterFamilyDetailsPage clientFamilyDataPage = clientPersonalDataPage.submitAndGotoCreateClientEnterFamilyDetailsPage();
    clientFamilyDataPage = clientTestHelper.createFamilyWithoutLookups(1, 49, 0, clientFamilyDataPage);
    CreateClientEnterMfiDataPage nextPage = clientFamilyDataPage.submitAndGotoCreateClientEnterMfiDataPage();
    nextPage.verifyPage("CreateClientFamilyInfo");
}
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)

Example 4 with CreateClientEnterFamilyDetailsPage

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

the class AddFamilyDetailsTest method goToPreviewPageAfterEnteringFamilyDetailsPageTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void goToPreviewPageAfterEnteringFamilyDetailsPageTest() throws Exception {
    propertiesHelper.setMaximumNumberOfFamilyMemebers(10);
    CreateClientEnterPersonalDataPage clientPersonalDataPage = clientTestHelper.createClientForFamilyInfo("MyOfficeDHMFT", "11", "12", "1988");
    CreateClientEnterFamilyDetailsPage clientFamilyDataPage = clientPersonalDataPage.submitAndGotoCreateClientEnterFamilyDetailsPage();
    clientFamilyDataPage.verifyPage("CreateClientFamilyInfo");
    clientFamilyDataPage = clientTestHelper.createFamily("fname", "lname", "11", "01", "1987", clientFamilyDataPage);
    CreateClientEnterMfiDataPage nextPage = clientFamilyDataPage.submitAndGotoCreateClientEnterMfiDataPage();
    nextPage.verifyPage("CreateClientMfiInfo");
    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 5 with CreateClientEnterFamilyDetailsPage

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

the class AddFamilyDetailsTest method canEditAfterSubmit.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void canEditAfterSubmit() throws Exception {
    propertiesHelper.setMaximumNumberOfFamilyMemebers(10);
    CreateClientEnterPersonalDataPage clientPersonalDataPage1 = clientTestHelper.createClientForFamilyInfo("MyOfficeDHMFT", "11", "12", "1988");
    CreateClientEnterFamilyDetailsPage clientFamilyDataPage = clientPersonalDataPage1.submitAndGotoCreateClientEnterFamilyDetailsPage();
    clientFamilyDataPage = clientTestHelper.createFamily("fname", "lname", "11", "01", "1987", clientFamilyDataPage);
    CreateClientEnterMfiDataPage nextPage = clientFamilyDataPage.submitAndGotoCreateClientEnterMfiDataPage();
    CreateClientPreviewDataPage clientPreviewDataPage1 = clientTestHelper.createClientMFIInformationAndGoToPreviewPage("loan officer", nextPage);
    clientPreviewDataPage1.submit();
    selenium.click("client_creationConfirmation.link.viewClientDetailsLink");
    selenium.waitForPageToLoad("30000");
    ClientViewDetailsPage clientDetailsPage = new ClientViewDetailsPage(selenium);
    ClientEditFamilyPage editFamilyPage = clientDetailsPage.editFamilyInformation();
    ClientEditFamilyParameters editParameters = new ClientEditFamilyParameters();
    editParameters.setFirstName("newName");
    editParameters.setRelationship(1);
    editParameters.setLastName("newLastName");
    editParameters.setDateOfBirthDD("11");
    editParameters.setDateOfBirthMM("12");
    editParameters.setDateOfBirthYY("2008");
    editParameters.setGender(49);
    editParameters.setLivingStatus(620);
    ClientFamilyEditPreviewPage previewEdit = editFamilyPage.submitAndNavigateToClientEditFamilyPreviewPage(editParameters);
    previewEdit.verifyPage();
    clientDetailsPage = previewEdit.submit();
    //Assert.assertTrue(selenium.isTextPresent("newName newLastName"));
    Assert.assertEquals(selenium.getText("displayName"), "newName newLastName");
}
Also used : CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage) CreateClientPreviewDataPage(org.mifos.test.acceptance.framework.client.CreateClientPreviewDataPage) ClientEditFamilyPage(org.mifos.test.acceptance.framework.client.ClientEditFamilyPage) CreateClientEnterFamilyDetailsPage(org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) ClientFamilyEditPreviewPage(org.mifos.test.acceptance.framework.client.ClientFamilyEditPreviewPage) CreateClientEnterMfiDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage) ClientEditFamilyParameters(org.mifos.test.acceptance.framework.client.ClientEditFamilyParameters)

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