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