use of com.wikia.webdriver.elements.mercury.pages.CategoryPage in project selenium-tests by Wikia.
the class CategoryPageTest method mercury_category_navigateToCategoryMemberPage.
@Test(groups = "mercury_category_navigateToCategoryMemberPage")
public void mercury_category_navigateToCategoryMemberPage() {
final String categoryName = String.format("Category:%s", TestContext.getCurrentMethodName());
final String articleContent = "Test article content";
new ArticleContent().push(String.format("%s [[%s]]", articleContent, categoryName));
ArticlePage article = new CategoryPage().open(categoryName).navigateToCategoryMemberPage();
Assert.assertEquals(articleContent, article.getArticleContent());
}
use of com.wikia.webdriver.elements.mercury.pages.CategoryPage in project selenium-tests by Wikia.
the class CategoryPageTest method mercury_category_navigateToCategoryPageWithArticleAndWithoutMembersFromUrl.
@Test(groups = "mercury_category_navigateToCategoryPageWithArticleAndWithoutMembersFromUrl")
public void mercury_category_navigateToCategoryPageWithArticleAndWithoutMembersFromUrl() {
final String categoryName = String.format("Category:%s", TestContext.getCurrentMethodName());
new ArticleContent().push("some irrelevant content of category article", categoryName);
CategoryPage category = new CategoryPage().open(categoryName);
Assert.assertEquals(404, category.getURLStatus(category.getCurrentUrl()));
}
Aggregations