use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class ArticleCommentsTests method ArticleComments_001_editComment.
@Test(groups = "ArticleComments_001")
@Execute(asUser = User.COMMENTS_REGULAR_USER)
public void ArticleComments_001_editComment() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
ArticlePageObject article = new ArticlePageObject().open();
String comment = PageContent.COMMENT_TEXT + article.getTimeStamp();
MiniEditorComponentObject editor = article.triggerCommentArea();
editor.switchAndWrite(comment);
article.submitComment();
article.verifyCommentText(comment);
article.verifyCommentCreator(User.COMMENTS_REGULAR_USER.getUserName());
article.triggerEditCommentArea();
String commentEdited = PageContent.COMMENT_TEXT + article.getTimeStamp();
editor.switchAndEditComment(commentEdited);
article.submitEditComment();
article.verifyCommentText(commentEdited);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class CategoriesArticleTests method CategoriesTestsArticle_003_user.
@Test(groups = { "CategoriesTestsArticle_003", "CategoriesTestsArticle" })
@Execute(asUser = User.USER)
public void CategoriesTestsArticle_003_user() {
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);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class CategoriesTestsEditMode method CategoriesTestsArticleEdit_004_user.
@Test(groups = { "CategoriesTestsArticleEdit_004", "CategoriesTestsArticleEditMode" })
@Execute(asUser = User.USER)
public void CategoriesTestsArticleEdit_004_user() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
VisualEditModePageObject visual = new VisualEditModePageObject().open();
String categoryName = PageContent.CATEGORY_NAME_PREFIX + visual.getTimeStamp();
visual.typeCategoryName(categoryName);
visual.submitCategory();
visual.verifyCategoryPresent(categoryName);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class CategoriesTestsEditMode method CategoriesTestsArticleEdit_005_userSuggestions.
@Test(groups = { "CategoriesTestsArticleEdit_005", "CategoriesTestsArticleEditMode" })
@Execute(asUser = User.USER)
public void CategoriesTestsArticleEdit_005_userSuggestions() {
new ArticleContent().push();
VisualEditModePageObject visual = new VisualEditModePageObject().open();
visual.typeCategoryName(PageContent.CATEGORY_NAME_PREFIX);
visual.triggerCategorySuggestions();
String categoryName = visual.selectCategorySuggestions(1);
visual.verifyCategoryPresent(categoryName);
}
Aggregations