Search in sources :

Example 6 with ForumThreadPageObject

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

the class ForumNotificationsTests method forumNotificationsTests_001_userAStartsDiscussion.

/**
   * Test case created to check possible regression of DAR-112 defect
   * <p/>
   * https://wikia-inc.atlassian.net/browse/DAR-112
   */
@Test(groups = { "ForumNotificationsTests_001", "ForumNotificationsTests", "NotificationsTests" })
@Execute(asUser = User.USER)
public void forumNotificationsTests_001_userAStartsDiscussion() {
    ForumPage forumMainPage = new ForumPage();
    title = String.format(PageContent.FORUM_TITLE_PREFIX, forumMainPage.getTimeStamp());
    message = String.format(PageContent.FORUM_MESSAGE, forumMainPage.getTimeStamp());
    forumMainPage.openForumMainPage(wikiURL);
    ForumBoardPage forumBoard = forumMainPage.openForumBoard();
    forumBoardTitle = forumBoard.getTitle();
    ForumThreadPageObject forumThread = forumBoard.startDiscussion(title, message, false);
    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 7 with ForumThreadPageObject

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

the class ForumNotificationsTests method userLeavesAReplayOnFormBoard.

private void userLeavesAReplayOnFormBoard() {
    ForumBoardPage forumBoard = new ForumBoardPage().open(forumBoardTitle);
    ForumThreadPageObject forumThread = forumBoard.openDiscussion(title);
    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)

Example 8 with ForumThreadPageObject

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

the class ForumAnonTests method anonymousUserCanReplyToThreadOnForum.

@Test(groups = { "ForumAnonTests_002" })
public void anonymousUserCanReplyToThreadOnForum() {
    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) Test(org.testng.annotations.Test)

Example 9 with ForumThreadPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumThreadPageObject 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 10 with ForumThreadPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumThreadPageObject 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)

Aggregations

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