use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method deleteGallery.
@Test(groups = { "ArticleFeaturesCRUDUser_002" })
@Execute(asUser = User.USER)
public void deleteGallery() {
new ArticleContent().push("<gallery position=\"right\" columns=\"2\" spacing=\"medium\">\n" + "Image010.jpg\n" + "Image009.jpg\n" + "Image008.jpg\n" + "Image007.jpg\n" + "</gallery>");
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
visualEditMode.removeComponent(Components.GALLERY);
visualEditMode.verifyComponentRemoved(Components.GALLERY);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class ArticleActionsAdminTests method deleteUndeleteArticle.
@Test(groups = { "ArticleActionsAdmin_001" })
@UseUnstablePageLoadStrategy
@RelatedIssue(issueID = "MAIN-9808", comment = "problems with banner notifications")
@Execute(asUser = User.STAFF)
public void deleteUndeleteArticle() {
String articleTitle = "DeleteUndeleArticle";
new ArticleContent().push(PageContent.ARTICLE_TEXT, articleTitle);
ArticlePageObject article = new ArticlePageObject().open(articleTitle);
DeletePageObject deletePage = article.deleteUsingDropdown();
deletePage.submitDeletion();
List<Notification> confirmNotifications = article.getNotifications(NotificationType.CONFIRM);
Assertion.assertEquals(confirmNotifications.size(), 1, SpecialRestorePageObject.AssertionMessages.INVALID_NUMBER_OF_CONFIRMING_NOTIFICATIONS);
SpecialRestorePageObject restore = article.getNotifications(NotificationType.CONFIRM).stream().findFirst().get().undelete();
restore.verifyRestoredArticleName(articleTitle);
restore.giveReason(article.getTimeStamp());
restore.restorePage();
confirmNotifications = article.getNotifications(NotificationType.CONFIRM);
Assertion.assertEquals(confirmNotifications.size(), 1, SpecialRestorePageObject.AssertionMessages.INVALID_NUMBER_OF_CONFIRMING_NOTIFICATIONS);
Assertion.assertTrue(confirmNotifications.stream().findFirst().get().isVisible());
article.verifyArticleTitle(articleTitle);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class ArticleCRUDUserTests method ArticleCRUDUser_006_editDropdown.
@Test(groups = { "ArticleCRUDUser_006" })
@Execute(asUser = User.USER)
public void ArticleCRUDUser_006_editDropdown() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
String articleContent = PageContent.ARTICLE_TEXT;
ArticlePageObject article = new ArticlePageObject().open();
VisualEditModePageObject visualEditMode = article.editArticleInRTEUsingDropdown();
visualEditMode.addContent(articleContent);
visualEditMode.submitArticle();
article.verifyContent(articleContent);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class ArticleCRUDUserTests method ArticleCRUDUser_005_editByURL.
@Test(groups = { "ArticleCRUDUser_005" })
@Execute(asUser = User.USER)
public void ArticleCRUDUser_005_editByURL() {
new ArticleContent().clear();
String articleContent = PageContent.ARTICLE_TEXT;
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
visualEditMode.addContent(articleContent);
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyContent(articleContent);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method deleteVideo.
@Test(groups = { "ArticleFeaturesCRUDUser_008", "Smoke5", "Media" })
@Execute(asUser = User.USER, onWikia = "mobileregressiontesting")
public void deleteVideo() {
new ArticleContent().push("[[File:Wikia University - How to Contact Wikia|thumb|right|335 px]]QAWebdriverCaption");
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
visualEditMode.removeComponent(Components.VIDEO);
visualEditMode.verifyComponentRemoved(Components.VIDEO);
}
Aggregations