use of org.mifos.test.acceptance.framework.admin.ViewReportCategoriesPage in project head by mifos.
the class StandardReportsTest method reportCategoriesTest.
/**
* Report categories can be added, edited and deleted
* http://mifosforge.jira.com/browse/MIFOSTEST-181
*
* @throws Exception
*/
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void reportCategoriesTest() throws Exception {
//When
ViewReportCategoriesPage viewReportCategoriesPage = reportTestHelper.navigateToViewReportCategories();
//Then
viewReportCategoriesPage.verifyReportCategoriesExist(DEFAULT_CATEGORIES);
//When
viewReportCategoriesPage = reportTestHelper.addNewCategory(viewReportCategoriesPage, NEWCAT);
//Then
viewReportCategoriesPage.verifyReportCategoriesExist(NEWCAT);
//When
viewReportCategoriesPage = reportTestHelper.addNewCategory(viewReportCategoriesPage, NEWCAT1);
//Then
viewReportCategoriesPage.verifyReportCategoriesExist(NEWCAT1);
//When
viewReportCategoriesPage = reportTestHelper.editCategory(viewReportCategoriesPage, NEWCAT2, "8");
//Then
viewReportCategoriesPage.verifyReportCategoriesExist(NEWCAT2);
viewReportCategoriesPage.verifyReportCategoriesNotExist(NEWCAT, 9);
//When
viewReportCategoriesPage = reportTestHelper.deleteCategory(viewReportCategoriesPage, "9");
//Then
viewReportCategoriesPage.verifyReportCategoriesNotExist(NEWCAT1, 8);
}
use of org.mifos.test.acceptance.framework.admin.ViewReportCategoriesPage in project head by mifos.
the class ViewReportCategoriesTest method verifyReportCategoriesExist.
/**
* Verify that expected Report Categories exist on the page
*/
public void verifyReportCategoriesExist() {
AdminPage adminPage = loginAndGoToAdminPage();
ViewReportCategoriesPage page = adminPage.navigateToViewReportCategories();
page.verifyPage();
String[] expectedData = new String[] { "Client Detail", "Performance", "Center", "Loan Product Detail", "Status", "Analysis", "Miscellaneous" };
page.verifyReportCategoriesExist(expectedData);
}
Aggregations