use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class BlogFeaturesTests method BlogFeatures_004_AddingVideo.
@Test(groups = { "BlogFeatures_004", "BlogFeaturesTests", "Media" })
@Execute(asUser = User.USER, onWikia = "mobileregressiontesting")
public void BlogFeatures_004_AddingVideo() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialCreatePage createPage = base.openSpecialCreateBlogPage(wikiURL);
String blogPostTitle = PageContent.BLOG_POST_NAME_PREFIX + createPage.getTimeStamp();
VisualEditModePageObject blogEdit = createPage.populateTitleField(blogPostTitle);
VetAddVideoComponentObject vetAddVideo = blogEdit.clickVideoButton();
VetOptionsComponentObject vetOptions = vetAddVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
vetOptions.setCaption(PageContent.CAPTION);
vetOptions.submit();
blogEdit.verifyVideo();
BlogPageObject blogPage = blogEdit.submitBlog();
blogPage.verifyVideo();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class BlogFeaturesTests method BlogFeatures_001_AddingGallery.
@Test(groups = { "BlogFeatures_001", "BlogFeaturesTests" })
@Execute(asUser = User.USER)
public void BlogFeatures_001_AddingGallery() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialCreatePage createPage = base.openSpecialCreateBlogPage(wikiURL);
String blogPostTitle = PageContent.BLOG_POST_NAME_PREFIX + createPage.getTimeStamp();
VisualEditModePageObject blogEdit = createPage.populateTitleField(blogPostTitle);
GalleryBuilderComponentObject galleryBuiler = blogEdit.clickGalleryButton();
AddPhotoComponentObject galleryAddPhoto = galleryBuiler.clickAddPhoto();
galleryAddPhoto.search("image");
galleryAddPhoto.choosePhotos(4);
galleryAddPhoto.clickSelect();
galleryBuiler.adjustPosition(PositionsGallery.CENTER);
galleryBuiler.adjustColumns("2");
galleryBuiler.adjustSpacing(SpacingGallery.SMALL);
galleryBuiler.adjustOrientation(Orientation.LANDSCAPE);
galleryBuiler.clickFinish();
blogEdit.verifyGallery();
BlogPageObject blogPage = blogEdit.submitBlog();
blogPage.verifyGallery();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class BlogTests method BlogTests_003_editFromProfile.
@Test(groups = { "BlogTests_003", "BlogTests" })
@Execute(asUser = User.USER)
public void BlogTests_003_editFromProfile() {
WikiBasePageObject base = new WikiBasePageObject();
String blogContent = PageContent.BLOG_CONTENT + base.getTimeStamp();
UserProfilePageObject userProfile = base.openProfilePage(credentials.userName, wikiURL);
userProfile.clickOnBlogTab();
BlogPageObject blogPage = userProfile.openFirstPost();
String blogTitle = blogPage.getBlogName();
VisualEditModePageObject visualEditMode = blogPage.openCKModeWithMainEditButton();
visualEditMode.addContent(blogContent);
visualEditMode.submitArticle();
blogPage.verifyBlogTitle(blogTitle);
blogPage.verifyContent(blogContent);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method deleteSlideshow.
@Test(groups = { "ArticleFeaturesCRUDUser_004" })
@Execute(asUser = User.USER)
public void deleteSlideshow() {
new ArticleContent().push("<gallery type=\"slideshow\">\nImage010.jpg\nImage009.jpg\nImage008.jpg\nImage007.jpg\n" + "Image010.jpg\nImage009.jpg\nImage008.jpg\nImage007.jpg\nImage006.jpg\nImage005.jpg\n" + "Image004.jpg\nImage003.jpg\n</gallery>");
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
visualEditMode.removeComponent(Components.SLIDESHOW);
visualEditMode.verifyComponentRemoved(Components.SLIDESHOW);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method addSlider.
@Test(groups = { "ArticleFeaturesCRUDUser_005" })
@Execute(asUser = User.USER)
public void addSlider() {
new ArticleContent().clear();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
SliderBuilderComponentObject sliderBuilder = visualEditMode.clickSliderButton();
sliderBuilder.selectMenuPosition(MenuPositions.VERTICAL);
AddPhotoComponentObject sliderAddPhoto = sliderBuilder.clickAddPhoto();
sliderAddPhoto.search("image");
sliderAddPhoto.choosePhotos(4);
sliderAddPhoto.clickSelect();
sliderBuilder.clickFinish();
visualEditMode.verifySlider();
visualEditMode.submitArticle().verifySlider();
}
Aggregations