use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage in project selenium-tests by Wikia.
the class ForumEditModeTests method adminUserCanOpenFrequentlyAskedQuestionsModalOnForum.
@Test(groups = { "ForumEditModeTests_001" })
@Execute(asUser = User.USER_ADMIN_FORUM)
public void adminUserCanOpenFrequentlyAskedQuestionsModalOnForum() {
ForumPage forumMainPage = new ForumPage();
forumMainPage.openForumMainPage(wikiURL);
forumMainPage.verifyFaqLightBox();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage in project selenium-tests by Wikia.
the class ForumThreadTests method staffUserCanMoveThreadToOtherBoard.
@Execute(asUser = User.STAFF)
@RelatedIssue(issueID = "SUS-1770", comment = "Test wont pass until product is fixed, don't bother reruning")
@Test(groups = { "ForumThreadTests_003" })
public void staffUserCanMoveThreadToOtherBoard() {
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.verifyParentBoard(forumThread.moveThread());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage in project selenium-tests by Wikia.
the class ForumThreadTests method staffUserCanCloseAndReopenThread.
@Execute(asUser = User.STAFF)
@Test(groups = { "ForumThreadTests_005" })
public void staffUserCanCloseAndReopenThread() {
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.closeThread(PageContent.CLOSE_REASON);
forumThread.verifyThreadClosed();
forumThread.reopenThread();
forumThread.verifyThreadReopened();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage in project selenium-tests by Wikia.
the class ForumBoardTests method staffUserCanStartDiscussionOnForum.
@Test(groups = { "ForumBoardTests_001", "Smoke3" })
@Execute(asUser = User.STAFF)
public void staffUserCanStartDiscussionOnForum() {
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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage in project selenium-tests by Wikia.
the class ForumBoardTests method anonymousUserCanFollowDiscussionOnForum.
@Test(groups = { "ForumBoardTests_006" })
@Execute(asUser = User.STAFF)
public void anonymousUserCanFollowDiscussionOnForum() {
ForumPage forumMainPage = new ForumPage();
forumMainPage.openForumMainPage(wikiURL);
ForumBoardPage forumBoard = forumMainPage.openForumBoard();
forumBoard.unfollowIfDiscussionIsFollowed(1);
forumBoard.verifyTextOnFollowButton(1, "Follow");
forumBoard.clickOnFollowButton(1);
forumBoard.verifyTextOnFollowButton(1, "Following");
forumBoard.clickOnFollowButton(1);
forumBoard.verifyTextOnFollowButton(1, "Follow");
}
Aggregations