use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method modifySlider.
@Test(groups = { "ArticleFeaturesCRUDUser_005" })
@Execute(asUser = User.USER)
public void modifySlider() {
new ArticleContent().push("<gallery type=\"slider\" orientation=\"right\">\nImage010.jpg\n" + "Image009.jpg\nImage008.jpg\nImage007.jpg\n</gallery>");
VisualEditModePageObject visualEditor = new VisualEditModePageObject().open();
SliderBuilderComponentObject sliderBuilder = (SliderBuilderComponentObject) visualEditor.modifyComponent(Components.SLIDER);
sliderBuilder.selectMenuPosition(MenuPositions.HORIZONTAL);
AddPhotoComponentObject sliderAddPhoto = sliderBuilder.clickAddPhoto();
sliderAddPhoto.search("image");
sliderAddPhoto.choosePhotos(8);
sliderAddPhoto.clickSelect();
sliderBuilder.clickFinish();
visualEditor.verifySlider();
visualEditor.submitArticle().verifySlider();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method addingImagePlaceholder.
@Test(groups = { "ArticleFeaturesCRUDUser_014" })
@Execute(asUser = User.USER)
public void addingImagePlaceholder() {
new ArticleContent().clear();
new ArticlePageObject().open();
VisualEditModePageObject visualEditMode = new WikiBasePageObject().goToArticleDefaultContentEditPage(wikiURL, TestContext.getCurrentMethodName());
ArticlePageObject article = visualEditMode.submitArticle();
PhotoAddComponentObject photoAddPhoto = article.clickAddImagePlaceholder();
PhotoOptionsComponentObject photoOptions = photoAddPhoto.addPhotoFromWiki("image", 2);
photoOptions.setCaption(PageContent.CAPTION);
photoOptions.clickAddPhoto();
article.verifyPhoto();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsAnon method ArticleCRUDAnonymous_004_AddingSlider.
@Test(groups = { "ArticleFeatureCRUDAnonymous_004", "ArticleFeaturesCRUDAnon" })
public void ArticleCRUDAnonymous_004_AddingSlider() {
ArticlePageObject article = new ArticlePageObject().open(articleName);
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
visualEditMode.clickSliderButton();
DetachedRegisterPage auth = new DetachedRegisterPage();
assertTrue(auth.isDisplayed());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method addSlideshow.
@Test(groups = { "ArticleFeaturesCRUDUser_003" })
@Execute(asUser = User.USER)
public void addSlideshow() {
new ArticleContent().clear();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
SlideshowBuilderComponentObject slideshowBuilder = visualEditMode.clickSlideshowButton();
AddPhotoComponentObject slideshowAddPhoto = slideshowBuilder.clickAddPhoto();
slideshowAddPhoto.search("image");
slideshowAddPhoto.choosePhotos(4);
slideshowAddPhoto.clickSelect();
slideshowBuilder.adjustPosition(Positions.CENTER);
slideshowBuilder.clickFinish();
visualEditMode.verifySlideshow();
visualEditMode.submitArticle().verifySlideshow();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method modifyImage.
@Test(groups = { "ArticleFeaturesCRUDUser_009", "Smoke4" })
@Execute(asUser = User.USER)
public void modifyImage() {
new ArticleContent().push("[[File:Image010.jpg|thumb|QAWebdriverCaption1]]");
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
visualEditMode.modifyComponent(Components.PHOTO);
PhotoOptionsComponentObject photoOptions = new PhotoOptionsComponentObject(driver);
photoOptions.setCaption(PageContent.CAPTION2);
photoOptions.clickAddPhoto();
visualEditMode.verifyPhoto();
visualEditMode.submitArticle().verifyPhoto();
}
Aggregations