use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialCreatePage 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.special.SpecialCreatePage in project selenium-tests by Wikia.
the class ArticleTOCTests method ArticleTOCTests_001_CreateArticleWithTOCasAnon.
/**
* 1. as anon create an article with TOC 2. verify TOC is present on the article
*/
@Test(groups = { "ArticleTOCTests", "ArticleTOCTests_001" })
public void ArticleTOCTests_001_CreateArticleWithTOCasAnon() {
WikiBasePageObject base = new WikiBasePageObject();
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
SpecialCreatePage specialCreatePage = new SpecialCreatePage().open();
VisualEditModePageObject visualEditMode = specialCreatePage.populateTitleField(articleTitle);
SourceEditModePageObject sourceEditMode = visualEditMode.clickSourceButton();
sourceEditMode.verifySourceModeEnabled();
sourceEditMode.addTOC();
ArticlePageObject article = sourceEditMode.submitArticle();
article.verifyTOCpresent();
}
Aggregations