use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class VisualEditorEditingTests method VisualEditorEditing_002_delete.
@Test(groups = { "VisualEditorEditing", "VisualEditorEditing_002" })
public void VisualEditorEditing_002_delete() {
new ArticleContent().push(startingWikiText);
String removeText = "Lorem ";
List<String> deletedWikiTexts;
deletedWikiTexts = new ArrayList<>();
deletedWikiTexts.add(removeText);
VisualEditorPageObject ve = new VisualEditorPageObject().open();
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
ve.removeText(removeText);
VisualEditorSaveChangesDialog saveDialog = ve.clickPublishButton();
VisualEditorReviewChangesDialog reviewDialog = saveDialog.clickReviewYourChanges();
reviewDialog.verifyDeletedDiffs(deletedWikiTexts);
saveDialog = reviewDialog.clickReturnToSaveFormButton();
ArticlePageObject article = saveDialog.savePage();
article.verifyVEPublishComplete();
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class CategoriesArticleTests method CategoriesTestsArticle_005_anonEdit.
@Test(groups = { "CategoriesTestsArticle_005", "CategoriesTestsArticle" })
public void CategoriesTestsArticle_005_anonEdit() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
ArticlePageObject article = new ArticlePageObject().open();
String categoryName = PageContent.CATEGORY_NAME_PREFIX + DateTime.now().getMillis();
article.addCategory(categoryName);
EditCategoryComponentObject editCategory = article.editCategory(categoryName);
categoryName = PageContent.CATEGORY_NAME_PREFIX + DateTime.now().getMillis();
editCategory.editCategoryName(categoryName);
article.submitCategory();
article.verifyCategoryPresent(categoryName);
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class CategoriesArticleTests method CategoriesTestsArticle_006_anonDelete.
@Test(groups = { "CategoriesTestsArticle_006", "CategoriesTestsArticle" })
public void CategoriesTestsArticle_006_anonDelete() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
ArticlePageObject article = new ArticlePageObject().open();
article.addCategory("DeleteMe");
article.verifySubmitCategoryEnabled();
article.removeCategory("DeleteMe");
article.verifySubmitCategoryDisabled();
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method modifyVideo.
@Test(groups = { "ArticleFeaturesCRUDUser_007", "Media" })
@Execute(asUser = User.USER)
public void modifyVideo() {
new ArticleContent().push("[[File:Wikia University - How to Contact Wikia|thumb|right|335 px|QAWebdriverCaption]]");
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditMode.modifyComponent(Components.VIDEO);
vetOptions.setCaption(PageContent.CAPTION2);
vetOptions.update();
visualEditMode.verifyVideo();
visualEditMode.submitArticle().verifyVideo();
}
use of com.wikia.webdriver.common.core.api.ArticleContent in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method deleteSlider.
@Test(groups = { "ArticleFeaturesCRUDUser_006" })
@Execute(asUser = User.USER)
public void deleteSlider() {
new ArticleContent().push("<gallery type=\"slider\" orientation=\"right\">\nImage010.jpg\n" + "Image009.jpg\nImage008.jpg\nImage007.jpg\n</gallery>");
VisualEditModePageObject visualEditor = new VisualEditModePageObject().open();
visualEditor.removeComponent(Components.SLIDER);
visualEditor.verifyComponentRemoved(Components.SLIDER);
}
Aggregations