use of org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage in project head by mifos.
the class NavigationHelper method navigateToCreateClientEnterPersonalDataPage.
public CreateClientEnterPersonalDataPage navigateToCreateClientEnterPersonalDataPage(String officeName) {
ClientsAndAccountsHomepage clientsAccountsPage = navigateToClientsAndAccountsPage();
GroupSearchPage groupSearchPage = clientsAccountsPage.navigateToCreateNewClientPage();
org.mifos.test.acceptance.framework.client.ChooseOfficePage chooseOfficePage = groupSearchPage.navigateToCreateClientWithoutGroupPage();
return chooseOfficePage.chooseOffice(officeName);
}
use of org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage in project head by mifos.
the class NavigationHelper method navigateToCreateCenterEnterDataPage.
public CreateCenterEnterDataPage navigateToCreateCenterEnterDataPage(String officeName) {
ClientsAndAccountsHomepage clientsAccountsPage = navigateToClientsAndAccountsPage();
CreateCenterChooseOfficePage chooseOfficePage = clientsAccountsPage.navigateToCreateNewCenterPage();
return chooseOfficePage.selectOffice(officeName);
}
use of org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage in project head by mifos.
the class LoanTestHelper method navigateToCreateLoanAccountSearchPage.
private CreateLoanAccountSearchPage navigateToCreateLoanAccountSearchPage() {
LoginPage loginPage = new AppLauncher(selenium).launchMifos().logout();
loginPage.verifyPage();
HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
homePage.verifyPage();
ClientsAndAccountsHomepage clientsAndAccountsPage = homePage.navigateToClientsAndAccountsUsingHeaderTab();
return clientsAndAccountsPage.navigateToCreateLoanAccountUsingLeftMenu();
}
use of org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage in project head by mifos.
the class LoanTestHelper method verifyLoansAreNotOnClientsLoanLists.
public void verifyLoansAreNotOnClientsLoanLists(String[] clients, String productName) {
ClientsAndAccountsHomepage clientsAndAccountsHomepage = navigationHelper.navigateToClientsAndAccountsPage();
for (String client : clients) {
ClientViewDetailsPage clientViewDetailsPage = clientsAndAccountsHomepage.searchForClient(client).navigateToSearchResult(client);
clientViewDetailsPage.verifyLoanDoesntExist(productName);
clientsAndAccountsHomepage = clientViewDetailsPage.navigateToClientsAndAccountsPageUsingHeaderTab();
}
}
use of org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage in project head by mifos.
the class CreateGLIMLoanAccountWithOneTimeFeeTest method createLoan.
private LoanAccountPage createLoan() {
ClientsAndAccountsHomepage clientsAndAccountsHomepage = navigationHelper.navigateToClientsAndAccountsPage();
CreateLoanAccountSearchPage createLoanAccountSearchPage = clientsAndAccountsHomepage.navigateToCreateLoanAccountUsingLeftMenu();
CreateLoanAccountSearchParameters formParameters = new CreateLoanAccountSearchParameters();
formParameters.setSearchString("Default Group");
formParameters.setLoanProduct("WeeklyGroupFlatLoanWithOnetimeFee");
CreateLoanAccountEntryPage createLoanAccountEntryPage = createLoanAccountSearchPage.searchAndNavigateToCreateLoanAccountPage(formParameters);
createLoanAccountEntryPage.setDisbursalDate(new DateTime(2011, 3, 4, 15, 0, 0, 0));
createLoanAccountEntryPage.selectGLIMClients(0, "Stu1233266299995 Client1233266299995 Client Id: 0002-000000012", "200", "0009-Horse");
createLoanAccountEntryPage.selectGLIMClients(1, "Stu1233266309851 Client1233266309851 Client Id: 0002-000000013", "300", "0001-Cow Purchase");
createLoanAccountEntryPage.selectGLIMClients(2, "Stu1233266319760 Client1233266319760 Client Id: 0002-000000014", "500", "0003-Goat Purchase");
createLoanAccountEntryPage.setInstallments("10");
createLoanAccountEntryPage.setInterestRate("21");
selenium.type("defaultFeeIndividualAmounts[0][0]", "0.2");
selenium.type("defaultFeeIndividualAmounts[0][1]", "0.3");
selenium.type("defaultFeeIndividualAmounts[0][2]", "0.5");
CreateLoanAccountReviewInstallmentPage createLoanAccountReviewInstallmentPage = createLoanAccountEntryPage.navigateToReviewInstallmentsPage();
CreateLoanAccountPreviewPage createLoanAccountPreviewPage = createLoanAccountReviewInstallmentPage.clickPreviewAndGoToReviewLoanAccountPage();
CreateLoanAccountConfirmationPage createLoanAccountConfirmationPage = createLoanAccountPreviewPage.submitForApprovalAndNavigateToConfirmationPage();
return createLoanAccountConfirmationPage.navigateToLoanAccountDetailsPage();
}
Aggregations