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;
}
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");
}
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");
}
Aggregations