Search in sources :

Example 1 with ClientEditMFIPage

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

the class ClientTest method searchForClientAndEditDetailsTest.

// implementation of test described in issue 2454
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true)
public void searchForClientAndEditDetailsTest() throws Exception {
    ClientsAndAccountsHomepage clientsPage = navigationHelper.navigateToClientsAndAccountsPage();
    ClientSearchResultsPage searchResultsPage = clientsPage.searchForClient("client1");
    searchResultsPage.verifyPage();
    ClientViewDetailsPage clientDetailsPage = searchResultsPage.navigateToSearchResult("client1 lastname: ID 0002-000000005");
    ClientEditMFIPage editMFIPage = clientDetailsPage.navigateToEditMFIPage();
    editMFIPage.verifyPage();
    ClientEditMFIParameters params = new ClientEditMFIParameters();
    params.setExternalId("extID123");
    params.setTrainedDateDD("15");
    params.setTrainedDateMM("12");
    params.setTrainedDateYYYY("2008");
    ClientEditMFIPreviewPage mfiPreviewPage = editMFIPage.submitAndNavigateToClientEditMFIPreviewPage(params);
    mfiPreviewPage.verifyPage();
    clientDetailsPage = mfiPreviewPage.submit();
    assertTextFoundOnPage("extID123");
    assertTextFoundOnPage("15/12/2008");
}
Also used : ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage) ClientEditMFIPreviewPage(org.mifos.test.acceptance.framework.client.ClientEditMFIPreviewPage) ClientSearchResultsPage(org.mifos.test.acceptance.framework.client.ClientSearchResultsPage) ClientEditMFIPage(org.mifos.test.acceptance.framework.client.ClientEditMFIPage) ClientEditMFIParameters(org.mifos.test.acceptance.framework.client.ClientEditMFIParameters) Test(org.testng.annotations.Test)

Aggregations

ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)1 ClientEditMFIPage (org.mifos.test.acceptance.framework.client.ClientEditMFIPage)1 ClientEditMFIParameters (org.mifos.test.acceptance.framework.client.ClientEditMFIParameters)1 ClientEditMFIPreviewPage (org.mifos.test.acceptance.framework.client.ClientEditMFIPreviewPage)1 ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)1 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)1 Test (org.testng.annotations.Test)1