Search in sources :

Example 1 with MonthClosingPage

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

the class MonthClosingTest method testMonthClosingPermission.

@Test(enabled = true)
public void testMonthClosingPermission() {
    // When
    AdminPage adminPage = navigationHelper.navigateToAdminPage().navigateToViewRolesPage().navigateToManageRolePage("Admin").disablePermission("0_5").verifyPermissionText("0_5", "Can set Month Closing date").submitAndGotoViewRolesPage().navigateToAdminPage();
    // Then
    adminPage.navigateToMonthClosing().submitWithoutPermission();
    // When
    adminPage = navigationHelper.navigateToAdminPage().navigateToViewRolesPage().navigateToManageRolePage("Admin").enablePermission("0_5").verifyPermissionText("0_5", "Can set Month Closing date").submitAndGotoViewRolesPage().navigateToAdminPage();
    // Then
    MonthClosingPage monthClosingPage = adminPage.navigateToMonthClosing();
    monthClosingPage.verifyCurrentMonthClosingDate("-");
    monthClosingPage.fillMonthClosingDate("20/02/12").submit().verifyCurrentMonthClosingDate("20/02/12");
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) MonthClosingPage(org.mifos.test.acceptance.framework.admin.MonthClosingPage) Test(org.testng.annotations.Test)

Aggregations

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