Search in sources :

Example 1 with ViewProductCategoriesPage

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

the class ViewProductCategoriesTest method verifyViewProductCategoriesTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test
public // http://mifosforge.jira.com/browse/MIFOSTEST-649
void verifyViewProductCategoriesTest() throws Exception {
    //Given
    //When
    AdminPage adminPage = loginAndGoToAdminPage();
    ViewProductCategoriesPage viewProductCategoriesPage = adminPage.navigateToViewProductCategoriesPage();
    //Then
    String[] expectedData = new String[] { //TODO add support for other languages than English
    "View product categories", "Click on a category below to view details and make changes or define new product category", "Loan", "Other", "Savings", "Other" };
    viewProductCategoriesPage.verifyProductCategories(expectedData);
    viewProductCategoriesPage.navigateToViewProductCategoryDetails("Other");
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) ViewProductCategoriesPage(org.mifos.test.acceptance.framework.admin.ViewProductCategoriesPage) Test(org.testng.annotations.Test)

Aggregations

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