use of org.mifos.test.acceptance.framework.HomePage in project head by mifos.
the class ViewClosedAccountsTest method navigateToCenterDetailsFromClosedAccounts.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void navigateToCenterDetailsFromClosedAccounts() throws Exception {
LoginPage loginPage = appLauncher.launchMifos();
HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
homePage.verifyPage();
SearchResultsPage searchResultsPage = homePage.search("WeeklyMeetingCenter");
searchResultsPage.verifyPage();
CenterViewDetailsPage centerViewDetailsPage = searchResultsPage.navigateToCenterViewDetailsPage("link=WeeklyMeetingCenter*");
centerViewDetailsPage.verifyPage();
ClosedAccountsPage closedAccountsPage = centerViewDetailsPage.navigateToClosedAccountsPage();
closedAccountsPage.verifyPage();
CenterViewDetailsPage returnedCenterViewDetailsPage = closedAccountsPage.returnToCenterViewDetailsPage();
returnedCenterViewDetailsPage.verifyPage();
}
use of org.mifos.test.acceptance.framework.HomePage in project head by mifos.
the class AccountingIntegrationTest method loginAndGoToAdminPage.
private AdminPage loginAndGoToAdminPage() {
HomePage homePage = appLauncher.launchMifos().loginSuccessfullyUsingDefaultCredentials();
homePage.verifyPage();
AdminPage adminPage = homePage.navigateToAdminPage();
adminPage.verifyPage();
return adminPage;
}
use of org.mifos.test.acceptance.framework.HomePage in project head by mifos.
the class SavingsAccountHelper method navigateToCreateSavingsAccountSearchPage.
private CreateSavingsAccountSearchPage navigateToCreateSavingsAccountSearchPage() {
LoginPage loginPage = new AppLauncher(selenium).launchMifos().logout();
loginPage.verifyPage();
HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
homePage.verifyPage();
ClientsAndAccountsHomepage clientsAndAccountsPage = homePage.navigateToClientsAndAccountsUsingHeaderTab();
return clientsAndAccountsPage.navigateToCreateSavingsAccountUsingLeftMenu();
}
use of org.mifos.test.acceptance.framework.HomePage in project head by mifos.
the class GroupTest method loginAndNavigateToNewGroupPage.
private CreateGroupEntryPage loginAndNavigateToNewGroupPage() {
LoginPage loginPage = appLauncher.launchMifos();
HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
String centerName = "Default Center";
CreateGroupSearchPage groupSearchPage = homePage.navigateToCreateNewGroupSearchPage();
groupSearchPage.verifyPage();
return groupSearchPage.searchAndNavigateToCreateGroupPage(centerName);
}
use of org.mifos.test.acceptance.framework.HomePage in project head by mifos.
the class CreateClientLoanAccountTest method tryClientLoanAccountWithAdditionalFees.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void tryClientLoanAccountWithAdditionalFees() throws Exception {
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2011, 2, 1, 13, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
CreateLoanAccountSearchParameters searchParameters = new CreateLoanAccountSearchParameters();
searchParameters.setSearchString("Client - Mary Monthly");
searchParameters.setLoanProduct("EmergencyLoanWithZeroInterest");
CreateLoanAccountEntryPage loanAccountEntryPage = loanTestHelper.navigateToCreateLoanAccountEntryPage(searchParameters);
loanAccountEntryPage.selectAdditionalFees();
// there should be an error
loanAccountEntryPage.submitAndWaitForPage();
loanAccountEntryPage.verifyError("Multiple instances of the same fee are not allowed.");
// after unselect everything should pass
loanAccountEntryPage.unselectAdditionalFee();
loanAccountEntryPage.clickContinue();
HomePage homePage = loanAccountEntryPage.navigateToHomePage();
homePage.verifyPage();
loanAccountEntryPage = loanTestHelper.navigateToCreateLoanAccountEntryPageWithoutLogout(searchParameters);
loanAccountEntryPage.verifyAdditionalFeesAreEmpty();
}
Aggregations