use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class BlogFeaturesTests method BlogFeatures_002_AddingSlideshow.
@Test(groups = { "BlogFeatures_002", "BlogFeaturesTests" })
@Execute(asUser = User.USER)
public void BlogFeatures_002_AddingSlideshow() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialCreatePage createPage = base.openSpecialCreateBlogPage(wikiURL);
String blogPostTitle = PageContent.BLOG_POST_NAME_PREFIX + createPage.getTimeStamp();
VisualEditModePageObject blogEdit = createPage.populateTitleField(blogPostTitle);
SlideshowBuilderComponentObject slideshowBuilder = blogEdit.clickSlideshowButton();
AddPhotoComponentObject slideshowAddPhoto = slideshowBuilder.clickAddPhoto();
slideshowAddPhoto.search("image");
slideshowAddPhoto.choosePhotos(4);
slideshowAddPhoto.clickSelect();
slideshowBuilder.adjustPosition(Positions.CENTER);
slideshowBuilder.clickFinish();
blogEdit.verifySlideshow();
BlogPageObject blogPage = blogEdit.submitBlog();
blogPage.verifySlideshow();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class BlogFeaturesTests method BlogFeatures_003_AddingSlider.
@Test(groups = { "BlogFeatures_003", "BlogFeaturesTests" })
@Execute(asUser = User.USER)
public void BlogFeatures_003_AddingSlider() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialCreatePage createPage = base.openSpecialCreateBlogPage(wikiURL);
String blogPostTitle = PageContent.BLOG_POST_NAME_PREFIX + createPage.getTimeStamp();
VisualEditModePageObject blogEdit = createPage.populateTitleField(blogPostTitle);
SliderBuilderComponentObject sliderBuilder = blogEdit.clickSliderButton();
sliderBuilder.selectMenuPosition(MenuPositions.VERTICAL);
AddPhotoComponentObject sliderAddPhoto = sliderBuilder.clickAddPhoto();
sliderAddPhoto.search("image");
sliderAddPhoto.choosePhotos(4);
sliderAddPhoto.clickSelect();
sliderBuilder.clickFinish();
blogEdit.verifySlider();
BlogPageObject blogPage = blogEdit.submitBlog();
blogPage.verifySlider();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class BlogTests method BlogTests_002_addByUrl.
@Test(dataProviderClass = ArticleDataProvider.class, dataProvider = "articleTitles", groups = { "BlogTests_002", "BlogTests" })
@Execute(asUser = User.USER)
public void BlogTests_002_addByUrl(String blogTitle) {
WikiBasePageObject base = new WikiBasePageObject();
String blogContent = PageContent.BLOG_CONTENT + base.getTimeStamp();
String randomBlogTitle = blogTitle + base.getTimeStamp();
SpecialCreatePage createBlogPage = base.openSpecialCreateBlogPage(wikiURL);
VisualEditModePageObject visualEditMode = createBlogPage.populateTitleField(randomBlogTitle);
visualEditMode.addContent(blogContent);
BlogPageObject blogPage = visualEditMode.submitBlog();
blogPage.verifyBlogTitle(randomBlogTitle);
blogPage.verifyContent(blogContent);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class BlogTests method BlogTests_005_move.
@Test(groups = { "BlogTests_005", "BlogTests" })
public void BlogTests_005_move() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
String blogTitleMove = PageContent.BLOG_POST_NAME_PREFIX + base.getTimeStamp();
UserProfilePageObject userProfile = base.openProfilePage(credentials.userName, wikiURL);
userProfile.clickOnBlogTab();
BlogPageObject blogPage = userProfile.openFirstPost();
RenamePageObject renamePage = blogPage.renameUsingDropdown();
renamePage.rename(credentials.userNameStaff + "/" + blogTitleMove, true);
blogPage.verifyBlogTitle(blogTitleMove);
List<Notification> confirmNotifications = blogPage.getNotifications(NotificationType.CONFIRM);
Assertion.assertEquals(confirmNotifications.size(), 1, RenamePageObject.AssertionMessages.INVALID_NUMBER_OF_CONFIRMING_NOTIFICATIONS);
Assertion.assertTrue(confirmNotifications.stream().findFirst().get().isVisible(), RenamePageObject.AssertionMessages.BANNER_NOTIFICATION_NOT_VISIBLE);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class BlogTests method BlogTests_001_addFromProfile.
@Test(groups = { "BlogTests_001", "BlogTests", "Smoke1" })
public void BlogTests_001_addFromProfile() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName4, credentials.password4, wikiURL);
String blogTitle = PageContent.BLOG_POST_NAME_PREFIX + base.getTimeStamp();
String blogContent = PageContent.BLOG_CONTENT + base.getTimeStamp();
UserProfilePageObject userProfile = base.openProfilePage(credentials.userName4, wikiURL);
userProfile.clickOnBlogTab();
SpecialCreatePage createBlogPage = userProfile.clickOnCreateBlogPost();
VisualEditModePageObject visualEditMode = createBlogPage.populateTitleField(blogTitle);
visualEditMode.addContent(blogContent);
BlogPageObject blogPage = visualEditMode.submitBlog();
blogPage.verifyBlogTitle(blogTitle);
blogPage.verifyContent(blogContent);
}
Aggregations