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");
}
Aggregations