use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.
the class RolesAndPermissionTest method editLoanStatusWithMaxRestrictionAndMultipleRolesTest.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true)
public void editLoanStatusWithMaxRestrictionAndMultipleRolesTest() throws Exception {
AdminPage adminPage = navigationHelper.navigateToAdminPage();
// Set 'Maximum loan amount' for role Admin
setMaximumLoanAmountRestriction(adminPage, "100", true);
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage("000100000000043");
try {
loanAccountPage.changeAccountStatusToAccepted();
} catch (AssertionError ae) {
Assert.assertEquals(ae.getMessage(), "Expected page <LoanAccountDetail>, actual page <ChangeStatusPreview>!!! with error message > User does not have permission to approve loans of this value");
}
adminPage = navigationHelper.navigateToAdminPage();
setMaximumLoanAmountRestriction(adminPage, "", false);
}
use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.
the class RolesAndPermissionTest method disableSystemInfoPermission.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true)
public void disableSystemInfoPermission() throws Exception {
AdminPage adminPage = navigationHelper.navigateToAdminPage();
changePermission(adminPage, "10_0", false);
//try to reach System Info page, should fail
adminPage = adminPage.failNavigationToSystemInfoPage();
adminPage = navigationHelper.navigateToAdminPage();
// reverting for other tests to pass
changePermission(adminPage, "10_0", true);
}
use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.
the class AccountingIntegrationTest method verifyAccountingExportsWorkFlow.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void verifyAccountingExportsWorkFlow() throws Exception {
AdminPage adminPage = loginAndGoToAdminPage();
ViewAccountingExportsPage viewAccountingExportsPage = adminPage.navigateToViewAccountingExports();
viewAccountingExportsPage.verifyPage();
viewAccountingExportsPage.clickCancel();
adminPage.verifyPage();
viewAccountingExportsPage = adminPage.navigateToViewAccountingExports();
viewAccountingExportsPage.clickClearExports();
viewAccountingExportsPage.verifyConfirmationPage();
viewAccountingExportsPage.clickSubmit();
viewAccountingExportsPage.verifyPage();
viewAccountingExportsPage.verifyNoExportPresent();
}
use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.
the class AccountingIntegrationTest method verifyAccountingExportsSavignsAccount.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void verifyAccountingExportsSavignsAccount() throws Exception {
AdminPage adminPage = loginAndGoToAdminPage();
ViewAccountingExportsPage viewAccountingExportsPage = adminPage.navigateToViewAccountingExports();
viewAccountingExportsPage = viewAccountingExportsPage.clickClearExports().clickSubmit();
ViewAccountingDataDetailPage viewAccountingDataDetail = viewAccountingExportsPage.navigateToViewAccountingDataDetail("2011-09-12");
if (!viewAccountingDataDetail.verifyIfListContains("Mandatory Savings Accounts")) {
Assert.fail("Accounting Export Details should contain Mandatory Savings Accounts row.");
}
}
use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.
the class AccountingIntegrationTest method loginAndGoToAdminPage.
private AdminPage loginAndGoToAdminPage() {
HomePage homePage = appLauncher.launchMifos().loginSuccessfullyUsingDefaultCredentials();
homePage.verifyPage();
AdminPage adminPage = homePage.navigateToAdminPage();
adminPage.verifyPage();
return adminPage;
}
Aggregations