Search in sources :

Example 1 with ClientSearchResultsPage

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

the class LoanTestHelper method reverseLoanDisbursal.

/**
     *
     * Reverses the loan disbursal account
     * @param accountID the id of loan account that should be reversed
     */
public MifosPage reverseLoanDisbursal(String accountID, String clientID, boolean isGroup, String resultClickLink) {
    ClientSearchResultsPage clientSearchResultsPage = navigationHelper.navigateToAdminPage().navigateToUndoLoanDisbursal().searchAndNavigateToUndoLoanDisbursalPage(accountID).submitAndNavigateToUndoLoanDisbursalConfirmationPage("test reverse loan disembursal note").submitAndNavigateToAdminPage().navigateToClientsAndAccountsUsingHeaderTab().searchForClient(clientID);
    MifosPage searchResultsPage;
    if (isGroup) {
        searchResultsPage = clientSearchResultsPage.navigateToGroupSearchResult(resultClickLink);
    } else {
        searchResultsPage = clientSearchResultsPage.navigateToSearchResult(resultClickLink);
    }
    return searchResultsPage;
}
Also used : ClientSearchResultsPage(org.mifos.test.acceptance.framework.client.ClientSearchResultsPage) MifosPage(org.mifos.test.acceptance.framework.MifosPage)

Example 2 with ClientSearchResultsPage

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

the class ClientTest method navigateToClientDetailsPage.

private void navigateToClientDetailsPage() {
    ClientsAndAccountsHomepage clientsPage = navigationHelper.navigateToClientsAndAccountsPage();
    ClientSearchResultsPage searchResultsPage = clientsPage.searchForClient("client1 lastname");
    searchResultsPage.verifyPage();
    viewClientDetailsPage = searchResultsPage.navigateToSearchResult("client1 lastname: ID 0002-000000005");
}
Also used : ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage) ClientSearchResultsPage(org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)

Example 3 with ClientSearchResultsPage

use of org.mifos.test.acceptance.framework.client.ClientSearchResultsPage 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

ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)3 ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)2 MifosPage (org.mifos.test.acceptance.framework.MifosPage)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 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)1 Test (org.testng.annotations.Test)1