Search in sources :

Example 1 with ViewOfficeHierarchyPage

use of org.mifos.test.acceptance.framework.admin.ViewOfficeHierarchyPage 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)

Aggregations

AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)1 ViewOfficeHierarchyPage (org.mifos.test.acceptance.framework.admin.ViewOfficeHierarchyPage)1 Test (org.testng.annotations.Test)1