Search in sources :

Example 11 with HomePage

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();
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) HomePage(org.mifos.test.acceptance.framework.HomePage) CenterViewDetailsPage(org.mifos.test.acceptance.framework.center.CenterViewDetailsPage) ClosedAccountsPage(org.mifos.test.acceptance.framework.loan.ClosedAccountsPage) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

Example 12 with HomePage

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;
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage)

Example 13 with HomePage

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();
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

Example 14 with HomePage

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);
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) CreateGroupSearchPage(org.mifos.test.acceptance.framework.group.CreateGroupSearchPage) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

Example 15 with HomePage

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();
}
Also used : CreateLoanAccountSearchParameters(org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchParameters) HomePage(org.mifos.test.acceptance.framework.HomePage) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) DateTime(org.joda.time.DateTime) CreateLoanAccountEntryPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountEntryPage)

Aggregations

HomePage (org.mifos.test.acceptance.framework.HomePage)42 LoginPage (org.mifos.test.acceptance.framework.login.LoginPage)20 SearchResultsPage (org.mifos.test.acceptance.framework.search.SearchResultsPage)14 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)10 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)10 ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)6 Test (org.testng.annotations.Test)6 MifosPage (org.mifos.test.acceptance.framework.MifosPage)4 ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)4 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)3 SubmitFormParameters (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters)3 ClosedAccountsPage (org.mifos.test.acceptance.framework.loan.ClosedAccountsPage)3 CreateUserParameters (org.mifos.test.acceptance.framework.user.CreateUserParameters)3 DateTime (org.joda.time.DateTime)2 CenterViewDetailsPage (org.mifos.test.acceptance.framework.center.CenterViewDetailsPage)2 CreateClientEnterPersonalDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)2 CollectionSheetEntryConfirmationPage (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntryConfirmationPage)2 CollectionSheetEntryEnterDataPage (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntryEnterDataPage)2 CollectionSheetEntrySelectPage (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage)2 CustomerChangeStatusPage (org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPage)2