Search in sources :

Example 31 with AdminPage

use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.

the class ClientTest method verifyAcceptedPaymentTypes.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// http://mifosforge.jira.com/browse/MIFOSTEST-248
@Test(enabled = true)
public void verifyAcceptedPaymentTypes() throws Exception {
    // When
    String groupName = "group1";
    CreateClientEnterPersonalDataPage.SubmitFormParameters clientParams = new CreateClientEnterPersonalDataPage.SubmitFormParameters();
    clientParams = clientParams();
    clientParams.setFirstName("John");
    clientParams.setLastName("Doe123");
    ClientViewDetailsPage clientViewDetailsPage = clientTestHelper.createNewClient(groupName, clientParams);
    clientViewDetailsPage.verifyHeading("John Doe123");
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    DefineAcceptedPaymentTypesPage defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
    defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.CHEQUE);
    adminPage = navigationHelper.navigateToAdminPage();
    defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
    defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.VOUCHER);
    ApplyPaymentPage applyPaymentPage = navigationHelper.navigateToClientViewDetailsPage("John Doe123").navigateToViewClientChargesDetail().navigateToApplyPayments();
    // Then
    applyPaymentPage.verifyModeOfPayments();
}
Also used : ApplyPaymentPage(org.mifos.test.acceptance.framework.loan.ApplyPaymentPage) CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) DefineAcceptedPaymentTypesPage(org.mifos.test.acceptance.framework.admin.DefineAcceptedPaymentTypesPage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) SubmitFormParameters(org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters) Test(org.testng.annotations.Test)

Example 32 with AdminPage

use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.

the class ViewLatenessAndDormancyDefinitionTest method verifyViewLatenessAndDormancyDefinitionPage.

@Test(enabled = true)
public //http://mifosforge.jira.com/browse/MIFOSTEST-705
void verifyViewLatenessAndDormancyDefinitionPage() {
    //When
    ViewLatenessAndDormancyDefinitionPage viewLatenessAndDormancyDefinitionPage = navigationHelper.navigateToAdminPage().navigateToViewLatenessAndDormancyDefinitionPage();
    viewLatenessAndDormancyDefinitionPage.submitWithInvalidData("aa", "bb");
    //Then
    viewLatenessAndDormancyDefinitionPage.verifyIsDormancyErrorDisplayed(true);
    viewLatenessAndDormancyDefinitionPage.verifyIsLatenessErrorDisplayed(true);
    //When
    AdminPage adminPage = viewLatenessAndDormancyDefinitionPage.submitAndNavigateToAdminPage("20", "10");
    viewLatenessAndDormancyDefinitionPage = adminPage.navigateToViewLatenessAndDormancyDefinitionPage();
    //Then
    viewLatenessAndDormancyDefinitionPage.verifyLatenessAndDormancy("20", "10");
    //When
    adminPage = viewLatenessAndDormancyDefinitionPage.submitAndNavigateToAdminPage("10", "30");
    // MIFOS-4774
    adminPage.navigateToViewLatenessAndDormancyDefinitionPage().submitAndNavigateToAdminPage("1234", "4321").navigateToViewLatenessAndDormancyDefinitionPage().submitAndNavigateToAdminPage();
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) ViewLatenessAndDormancyDefinitionPage(org.mifos.test.acceptance.framework.admin.ViewLatenessAndDormancyDefinitionPage) Test(org.testng.annotations.Test)

Example 33 with AdminPage

use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.

the class ViewOfficeHierarchyTest 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 34 with AdminPage

use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.

the class ViewOfficeHierarchyTest method verifyViewOfficeHierarchyPage.

@Test
public void verifyViewOfficeHierarchyPage() {
    AdminPage adminPage = loginAndGoToAdminPage();
    ViewOfficeHierarchyPage viewOfficeHierarchyPage = adminPage.navigateToViewOfficeHierarchyPage();
    viewOfficeHierarchyPage.verifyPage();
    String[] expectedText = new String[] { "The office hierarchy can have minimum two and maximum five levels", "Check the levels to be included.", "Note: The highest and lowest hierarchy levels cannot be removed from the system.", "Head Office", "Regional Office", "Divisional Office", "Area Office", "Branch Office" };
    viewOfficeHierarchyPage.verifyText(expectedText);
    viewOfficeHierarchyPage.verifyHeadOfficeCheckboxChecked();
    viewOfficeHierarchyPage.verifyRegionalOfficeCheckboxChecked();
    viewOfficeHierarchyPage.verifyDivisionalOfficeCheckboxChecked();
    viewOfficeHierarchyPage.verifyAreaOfficeCheckboxChecked();
    viewOfficeHierarchyPage.verifyBranchOfficeCheckboxChecked();
    viewOfficeHierarchyPage.verifyHeadOfficeCheckboxDisabled();
    viewOfficeHierarchyPage.verifyRegionalOfficeCheckboxEnabled();
    viewOfficeHierarchyPage.verifyDivisionalOfficeCheckboxEnabled();
    viewOfficeHierarchyPage.verifyAreaOfficeCheckboxEnabled();
    viewOfficeHierarchyPage.verifyBranchOfficeCheckboxDisabled();
}
Also used : ViewOfficeHierarchyPage(org.mifos.test.acceptance.framework.admin.ViewOfficeHierarchyPage) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) Test(org.testng.annotations.Test)

Example 35 with AdminPage

use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.

the class ViewOrganizationSettingsTest 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)

Aggregations

AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)87 Test (org.testng.annotations.Test)33 HomePage (org.mifos.test.acceptance.framework.HomePage)9 CreateQuestionGroupPage (org.mifos.test.acceptance.framework.questionnaire.CreateQuestionGroupPage)8 CreateQuestionGroupParameters (org.mifos.test.acceptance.framework.questionnaire.CreateQuestionGroupParameters)7 CreateUserParameters (org.mifos.test.acceptance.framework.user.CreateUserParameters)7 DateTime (org.joda.time.DateTime)6 ImportTransactionsPage (org.mifos.test.acceptance.framework.admin.ImportTransactionsPage)6 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)6 CreateQuestionPage (org.mifos.test.acceptance.framework.questionnaire.CreateQuestionPage)6 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)6 DefineAcceptedPaymentTypesPage (org.mifos.test.acceptance.framework.admin.DefineAcceptedPaymentTypesPage)5 DefineHiddenMandatoryFieldsPage (org.mifos.test.acceptance.framework.admin.DefineHiddenMandatoryFieldsPage)5 DefineNewLoanProductPage (org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage)5 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)5 CreateLoanAccountSearchParameters (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchParameters)4 EditLoanProductPage (org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPage)4 EditLoanProductPreviewPage (org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPreviewPage)4 LoanProductDetailsPage (org.mifos.test.acceptance.framework.loanproduct.LoanProductDetailsPage)4 ViewLoanProductsPage (org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage)4