use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class ArticleTOCTests method ArticleTOCTests_006_verifyTOCisExpandedOnPreviewForLoggedInUser.
/**
* 1. as logged in user open an article with TOC 2. user edits the article 3. user is able to see
* expanded TOC on the preview
*/
@Test(groups = { "ArticleTOCTests", "ArticleTOCTests_006" })
@Execute(asUser = User.USER_12)
public void ArticleTOCTests_006_verifyTOCisExpandedOnPreviewForLoggedInUser() {
new ArticleContent().push(PageContent.ARTICLE_WITH_TOC_LINES);
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
Assertion.assertTrue(visualEditMode.isContentLoaded(), "Content is not loaded");
PreviewEditModePageObject preview = visualEditMode.previewArticle();
preview.verifyTOCpresentOnPreview();
preview.verifyTOCexpandedOnPreview();
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class ArticleTOCTests method ArticleTOCTests_005_verifyTOChideShowButtonsWorkForLoggedInUser.
/**
* 1. as logged in user open an article with TOC 2. verify TOC is expanded 3. verify that
* show/hide buttons work
*/
@Test(groups = { "ArticleTOCTests", "ArticleTOCTests_005" })
@Execute(asUser = User.USER)
public void ArticleTOCTests_005_verifyTOChideShowButtonsWorkForLoggedInUser() {
new ArticleContent().push(PageContent.ARTICLE_WITH_TOC_LINES);
ArticlePageObject article = new ArticlePageObject().open();
article.verifyTOCpresent();
article.verifyTOCexpanded();
article.clickTOCshowHideButton();
article.verifyTOCcollapsed();
article.clickTOCshowHideButton();
article.verifyTOCexpanded();
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class ArticleTOCTests method ArticleTOCTests_003_verifyTOCisCollapsedOnPreviewForAnon.
/**
* 1. as anon open an article with TOC 2. user edits the article 3. user is able to see collapsed
* TOC on the preview
*/
@Test(groups = { "ArticleTOCTests", "ArticleTOCTests_003" })
public void ArticleTOCTests_003_verifyTOCisCollapsedOnPreviewForAnon() {
new ArticleContent().push(PageContent.ARTICLE_WITH_TOC_LINES);
ArticlePageObject article = new ArticlePageObject().open();
article.verifyTOCpresent();
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
Assertion.assertTrue(visualEditMode.isContentLoaded(), "Content is not loaded");
PreviewEditModePageObject preview = visualEditMode.previewArticle();
preview.verifyTOCpresentOnPreview();
preview.verifyTOCcollapsedOnPreview();
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class CategoriesArticleTests method CategoriesTestsArticle_004_userSuggestions.
@Test(groups = { "CategoriesTestsArticle_004", "CategoriesTestsArticle" })
@Execute(asUser = User.USER)
public void CategoriesTestsArticle_004_userSuggestions() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
ArticlePageObject article = new ArticlePageObject().open();
String desiredCategory = article.addCategorySuggestions(PageContent.CATEGORY_NAME_PREFIX, 2);
article.submitCategory();
article.verifyCategoryPresent(desiredCategory);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class CategoriesArticleTests method CategoriesTestsArticle_001_anon.
@Test(groups = { "CategoriesTestsArticle_001", "CategoriesTestsArticle", "Smoke2" })
public void CategoriesTestsArticle_001_anon() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
ArticlePageObject article = new ArticlePageObject().open();
String categoryName = PageContent.CATEGORY_NAME_PREFIX + article.getTimeStamp();
article.addCategory(categoryName);
article.submitCategory();
article.verifyCategoryPresent(categoryName);
}
Aggregations