Search in sources :

Example 11 with ForumBoardPage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumBoardPage in project selenium-tests by Wikia.

the class ForumThreadTests method threadHistoryPageContainsTableAndCells.

@Execute(asUser = User.STAFF)
@Test(groups = { "ForumThreadTests_004" })
public void threadHistoryPageContainsTableAndCells() {
    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);
    ForumHistoryPageObject forumHistory = forumThread.openHistory();
    forumHistory.verifyImportandPageElements();
}
Also used : ForumHistoryPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumHistoryPageObject) ForumThreadPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumThreadPageObject) ForumBoardPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumBoardPage) ForumPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 12 with ForumBoardPage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumBoardPage in project selenium-tests by Wikia.

the class ForumThreadTests method staffUserCanRemoveThreadAndUndoRemoval.

@Execute(asUser = User.STAFF)
@Test(groups = { "ForumThreadTests_002", "Forum" })
public void staffUserCanRemoveThreadAndUndoRemoval() {
    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.removeThread("QA reason");
    forumThread.verifyThreadRemoved();
    forumThread.undoRemove();
    forumThread.verifyDiscussionTitleAndMessage(title, message);
}
Also used : ForumThreadPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumThreadPageObject) ForumBoardPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumBoardPage) ForumPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 13 with ForumBoardPage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumBoardPage 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);
}
Also used : ForumThreadPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumThreadPageObject) ForumBoardPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumBoardPage) ForumPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 14 with ForumBoardPage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumBoardPage 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();
}
Also used : ForumBoardPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumBoardPage) ForumPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 15 with ForumBoardPage

use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumBoardPage 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();
}
Also used : ForumBoardPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumBoardPage) ForumPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

ForumBoardPage (com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumBoardPage)15 ForumPage (com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage)14 Test (org.testng.annotations.Test)14 Execute (com.wikia.webdriver.common.core.annotations.Execute)12 ForumThreadPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumThreadPageObject)11 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)1 ForumHistoryPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumHistoryPageObject)1