use of org.mifos.test.acceptance.framework.MifosPage in project head by mifos.
the class SearchCustomerTest method tearDown.
@AfterMethod
public void tearDown() {
(new MifosPage(selenium)).logout();
new DateTimeUpdaterRemoteTestingService(selenium).resetDateTime();
}
use of org.mifos.test.acceptance.framework.MifosPage 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.MifosPage in project head by mifos.
the class CreateGroupLoanAccountTest method loginSuccessfully.
private HomePage loginSuccessfully() {
(new MifosPage(selenium)).logout();
LoginPage loginPage = new AppLauncher(selenium).launchMifos();
loginPage.verifyPage();
HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
homePage.verifyPage();
return homePage;
}
use of org.mifos.test.acceptance.framework.MifosPage in project head by mifos.
the class ClientLoanDisbursalTest method logOut.
@AfterMethod(alwaysRun = true)
public void logOut() {
new DateTimeService().resetToCurrentSystemDateTime();
(new MifosPage(selenium)).logout();
}
use of org.mifos.test.acceptance.framework.MifosPage in project head by mifos.
the class ClientTest method checkMandatoryQuestionValidation.
private QuestionnairePage checkMandatoryQuestionValidation(String questionGroupTitle, String question1, String question2, ClientViewDetailsPage viewDetailsPage) {
QuestionnairePage questionnairePage = viewDetailsPage.getQuestionnairePage(questionGroupTitle);
questionnairePage.setResponsesForMultiSelect(question2, 4, "Choice1", "Choice3", "Choice4");
MifosPage mifosPage = questionnairePage.submit();
Assert.assertTrue(mifosPage instanceof QuestionnairePage);
questionnairePage = (QuestionnairePage) mifosPage;
Assert.assertTrue(questionnairePage.isErrorPresent("Please specify " + question1));
return questionnairePage;
}
Aggregations