use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage in project selenium-tests by Wikia.
the class ForumThreadTests method staffUserCanReplyToForumThread.
@Execute(asUser = User.STAFF)
@Test(groups = { "ForumThreadTests_001", "Smoke3" })
public void staffUserCanReplyToForumThread() {
ForumPage forumMainPage = new ForumPage();
String title = String.format(PageContent.FORUM_TITLE_PREFIX, forumMainPage.getTimeStamp());
String message = String.format(PageContent.FORUM_MESSAGE, forumMainPage.getTimeStamp());
forumMainPage.openForumMainPage(wikiURL);
ForumBoardPage forumBoard = forumMainPage.openForumBoard();
ForumThreadPageObject forumThread = forumBoard.startDiscussion(title, message, false);
forumThread.verifyDiscussionTitleAndMessage(title, message);
forumThread.reply(message);
forumThread.verifyReplyMessage(1, message);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage in project selenium-tests by Wikia.
the class ForumBoardTests method anonymousUserCanStartDiscussionWithImageOnForum.
@Test(groups = { "ForumBoardTests_003" })
@Execute(asUser = User.STAFF)
public void anonymousUserCanStartDiscussionWithImageOnForum() {
ForumPage forumMainPage = new ForumPage();
String title = String.format(PageContent.FORUM_TITLE_PREFIX, forumMainPage.getTimeStamp());
forumMainPage.openForumMainPage(wikiURL);
ForumBoardPage forumBoard = forumMainPage.openForumBoard();
forumBoard.startDiscussionWithImage(title);
forumBoard.clickPostButton();
forumBoard.verifyDiscussionWithImage();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage in project selenium-tests by Wikia.
the class ForumBoardTests method anonymousUserCanStartDiscussionWithVideoOnForum.
@Test(groups = { "ForumBoardTests_005" })
@Execute(asUser = User.STAFF)
public void anonymousUserCanStartDiscussionWithVideoOnForum() {
ForumPage forumMainPage = new ForumPage();
String title = String.format(PageContent.FORUM_TITLE_PREFIX, forumMainPage.getTimeStamp());
forumMainPage.openForumMainPage(wikiURL);
ForumBoardPage forumBoard = forumMainPage.openForumBoard();
forumBoard.startDiscussionWithVideo(VideoContent.YOUTUBE_VIDEO_URL3, title);
forumBoard.clickPostButton();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage in project selenium-tests by Wikia.
the class ForumEditModeTests method adminUserCanDeleteBoard.
@Test(groups = { "ForumEditModeTests_003" })
@Execute(asUser = User.USER_ADMIN_FORUM)
public void adminUserCanDeleteBoard() {
ForumPage forumMainPage = new ForumPage();
forumMainPage.openForumMainPage(wikiURL);
ForumManageBoardsPageObject manageForum = forumMainPage.clickManageBoardsButton();
first = manageForum.getFirstForumName();
second = manageForum.getSecondForumName();
manageForum.verifyForumExists(first, wikiURL);
manageForum.deleteForum(first, second);
manageForum.verifyForumNotExists(first, wikiURL);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage in project selenium-tests by Wikia.
the class ForumEditModeTests method adminUserCanEditForum.
@Test(groups = { "ForumEditModeTests_004" })
@Execute(asUser = User.USER_ADMIN_FORUM)
public void adminUserCanEditForum() {
ForumPage forumMainPage = new ForumPage();
forumMainPage.openForumMainPage(wikiURL);
ForumManageBoardsPageObject manageForum = forumMainPage.clickManageBoardsButton();
first = manageForum.getFirstForumName();
title = PageContent.FORUM_TITLE_EDIT_PREFIX + manageForum.getTimeStamp();
description = PageContent.FORUM_DESCRIPTION_EDIT_PREFIX + manageForum.getTimeStamp();
manageForum.editForum(first, title, description);
manageForum.verifyBoardCreated(title, description);
manageForum.verifyForumExists(title, wikiURL);
}
Aggregations