use of org.mifos.test.acceptance.framework.search.SearchResultsPage in project head by mifos.
the class WaiveLoanFeeTest method waiveFeeOnLastInstallment.
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void waiveFeeOnLastInstallment() throws Exception {
LoginPage loginPage = appLauncher.launchMifos();
HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
SearchResultsPage searchResultsPage = homePage.search("000100000000012");
searchResultsPage.verifyPage();
LoanAccountPage loanAccountPage = searchResultsPage.navigateToLoanAccountDetailPage("000100000000012");
ViewNextInstallmentDetailsPage viewInstallmentDetailsPage = loanAccountPage.navigateToViewNextInstallmentDetails();
viewInstallmentDetailsPage.verifyInstallmentAmount(11, 2, "10");
viewInstallmentDetailsPage.waiveOverdueInstallmentFee();
viewInstallmentDetailsPage.verifyInstallmentAmount(11, 2, "0");
}
use of org.mifos.test.acceptance.framework.search.SearchResultsPage in project head by mifos.
the class SearchAccountTest method searchAccountTest.
/**
* Enters an account number <b>ACCT_SEARCH_STRING</b> in the search box
* and verifies that the expected text with that account number
* is present on the results page
*/
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(singleThreaded = true, groups = { "smoke", "search", "acceptance", "no_db_unit" })
public void searchAccountTest() throws Exception {
SearchResultsPage page = searchFor(appLauncher, ACCT_SEARCH_STRING);
int count = page.countSearchResults();
//Check that only one row for this account number is returned
Assert.assertEquals(count, 1);
//Check the displayed text
Assert.assertTrue(selenium.isTextPresent(ACCT_SEARCH_STRING));
}
use of org.mifos.test.acceptance.framework.search.SearchResultsPage in project head by mifos.
the class SearchCenterTest method searchCenterSpecificTest.
// http://mifosforge.jira.com/browse/MIFOSTEST-473
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void searchCenterSpecificTest() throws Exception {
String searchPhrase = "Default Center";
SearchResultsPage page = searchFor(appLauncher, searchPhrase);
page.verifySearchResults(1, "0002-000000001");
}
use of org.mifos.test.acceptance.framework.search.SearchResultsPage in project head by mifos.
the class SearchCustomerTest method searchCustomerTest.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void searchCustomerTest() throws Exception {
String searchPhrase = "Client Veronica Abisya";
SearchResultsPage page = searchFor(appLauncher, searchPhrase);
page.verifySearchResults(1, "Client - Veronica Abisya");
}
use of org.mifos.test.acceptance.framework.search.SearchResultsPage in project head by mifos.
the class SearchGroupTest method searchGroupListTest.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void searchGroupListTest() throws Exception {
String searchPhrase = "group";
SearchResultsPage page = searchFor(appLauncher, searchPhrase);
Assert.assertTrue(page.countSearchResults() >= 8);
}
Aggregations