Ejemplo n.º 1
0
 @Test(groups = {"ForumBoardTests_002", "ForumBoardTests", "Forum"})
 public void ForumBoardTests_002_startDiscussionWithoutTitle() {
   ForumPageObject forumMainPage = new ForumPageObject(driver);
   forumMainPage.logInCookie(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
   message = PageContent.FORUM_MESSAGE + forumMainPage.getTimeStamp();
   forumMainPage.openForumMainPage(wikiURL);
   ForumBoardPageObject forumBoard = forumMainPage.openForumBoard();
   ForumThreadPageObject forumThread = forumBoard.startDiscussionWithoutTitle(message);
   // "Message from" default title appears after posting message without title
   forumThread.verifyDiscussionTitleAndMessage("Message from", message);
 }
Ejemplo n.º 2
0
 @Test(groups = {"ForumBoardTests_001", "ForumBoardTests", "Forum", "Smoke3"})
 public void ForumBoardTests_001_startDiscussionWithTitleAndMessage() {
   ForumPageObject forumMainPage = new ForumPageObject(driver);
   forumMainPage.logInCookie(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
   title = PageContent.FORUM_TITLE_PREFIX + forumMainPage.getTimeStamp();
   message = PageContent.FORUM_MESSAGE + forumMainPage.getTimeStamp();
   forumMainPage.openForumMainPage(wikiURL);
   ForumBoardPageObject forumBoard = forumMainPage.openForumBoard();
   ForumThreadPageObject forumThread = forumBoard.startDiscussion(title, message, false);
   forumThread.verifyDiscussionTitleAndMessage(title, message);
 }
Ejemplo n.º 3
0
 @Test(
     enabled = false, // CONCF-476
     groups = {"ForumBoardTests_007", "ForumBoardTests", "Forum"})
 public void ForumBoardTests_007_highlightDiscussion() {
   ForumPageObject forumMainPage = new ForumPageObject(driver);
   forumMainPage.logInCookie(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
   title = PageContent.FORUM_TITLE_PREFIX + forumMainPage.getTimeStamp();
   message = PageContent.FORUM_MESSAGE + forumMainPage.getTimeStamp();
   forumMainPage.openForumMainPage(wikiURL);
   ForumBoardPageObject forumBoard = forumMainPage.openForumBoard();
   ForumThreadPageObject forumThread = forumBoard.startDiscussion(title, message, true);
   forumThread.verifyDiscussionTitleAndMessage(title, message);
   forumThread.notifications_verifyLatestNotificationTitle(title);
 }