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