@Test(groups = "Enterprise-only", timeOut = 400000) public void checkThatFactoryReturnCategoryManagerPage() throws Exception { SharePage page = loginAs("admin", "admin"); page.getNav().getCategoryManagerPage().render(); assertTrue(drone.getCurrentPage().render() instanceof CategoryManagerPage); }
@SuppressWarnings("unchecked") @Override public CategoryManagerPage render(RenderTime renderTime) { elementRender(renderTime, getVisibleRenderElement(TITLE), getVisibleRenderElement(CATEGORY_LIST), getVisibleRenderElement(ALL_CATEGORIES)); return this; }
CategoryManagerPage extends AdminConsolePage { @SuppressWarnings("unchecked") @Override public CategoryManagerPage render(RenderTime renderTime) { elementRender(renderTime, getVisibleRenderElement(TITLE), getVisibleRenderElement(CATEGORY_LIST), getVisibleRenderElement(ALL_CATEGORIES)); return this; } }
CategoryManagerPage extends AdminConsolePage { @SuppressWarnings("unchecked") @Override public CategoryManagerPage render(RenderTime renderTime) { elementRender(renderTime, getVisibleRenderElement(TITLE), getVisibleRenderElement(CATEGORY_LIST), getVisibleRenderElement(ALL_CATEGORIES)); return this; } CategoryManagerPage(WebDrone drone); }
CategoryManagerPage extends AdminConsolePage { @SuppressWarnings("unchecked") @Override public CategoryManagerPage render(RenderTime renderTime) { elementRender(renderTime, getVisibleRenderElement(TITLE), getVisibleRenderElement(CATEGORY_LIST), getVisibleRenderElement(ALL_CATEGORIES)); return this; } CategoryManagerPage(WebDrone drone); @SuppressWarnings("unchecked") @Override CategoryManagerPage render(RenderTime renderTime); @SuppressWarnings("unchecked") @Override CategoryManagerPage render(long l); @SuppressWarnings("unchecked") @Override CategoryManagerPage render(); List<WebElement> getListCategories(); void editCategory(String categoryName, String newName); void addNewCategory(String parentCategory, String categoryName); AddCategoryForm openAddCategoryForm(String categoryName); void openSubCategoryList(String categoryName); void deleteCategory(String categoryName); boolean isCategoryPresent(String categoryName); int getCategoriesCount(); void expandCategoryRootTree(); boolean isCategoryRootTreeExpanded(); }
CategoryManagerPage extends AdminConsolePage { @SuppressWarnings("unchecked") @Override public CategoryManagerPage render(RenderTime renderTime) { elementRender(renderTime, getVisibleRenderElement(TITLE), getVisibleRenderElement(CATEGORY_LIST), getVisibleRenderElement(ALL_CATEGORIES)); return this; } CategoryManagerPage(WebDrone drone); @SuppressWarnings("unchecked") @Override CategoryManagerPage render(RenderTime renderTime); @SuppressWarnings("unchecked") @Override CategoryManagerPage render(long l); @SuppressWarnings("unchecked") @Override CategoryManagerPage render(); List<WebElement> getListCategories(); void editCategory(String categoryName, String newName); void addNewCategory(String parentCategory, String categoryName); AddCategoryForm openAddCategoryForm(String categoryName); void openSubCategoryList(String categoryName); void deleteCategory(String categoryName); boolean isCategoryPresent(String categoryName); int getCategoriesCount(); void expandCategoryRootTree(); boolean isCategoryRootTreeExpanded();  }