Search in sources :

Example 6 with CommentsTab

use of org.xwiki.test.ui.po.CommentsTab in project xwiki-platform by xwiki.

the class CommentAsGuestTest method testPostCommentAsGuest.

@Test
@IgnoreBrowsers({ @IgnoreBrowser(value = "internet.*", version = "8\\.*", reason = "See https://jira.xwiki.org/browse/XE-1146"), @IgnoreBrowser(value = "internet.*", version = "9\\.*", reason = "See https://jira.xwiki.org/browse/XE-1177") })
public void testPostCommentAsGuest() {
    CommentsTab commentsTab = this.vp.openCommentsDocExtraPane();
    commentsTab.postCommentAsGuest(COMMENT_CONTENT, COMMENT_AUTHOR, true);
    Assert.assertEquals(COMMENT_CONTENT, commentsTab.getCommentContentByID(0));
    Assert.assertEquals(COMMENT_AUTHOR, commentsTab.getCommentAuthorByID(0));
}
Also used : CommentsTab(org.xwiki.test.ui.po.CommentsTab) IgnoreBrowsers(org.xwiki.test.ui.browser.IgnoreBrowsers) Test(org.junit.Test)

Aggregations

CommentsTab (org.xwiki.test.ui.po.CommentsTab)6 Test (org.junit.Test)5 IgnoreBrowsers (org.xwiki.test.ui.browser.IgnoreBrowsers)4 ViewPage (org.xwiki.test.ui.po.ViewPage)2 WikiEditPage (org.xwiki.test.ui.po.editor.WikiEditPage)2 ServerSetupTest (com.icegreen.greenmail.util.ServerSetupTest)1 HashMap (java.util.HashMap)1 Before (org.junit.Before)1 NotificationsTrayPage (org.xwiki.platform.notifications.test.po.NotificationsTrayPage)1 NotificationsUserProfilePage (org.xwiki.platform.notifications.test.po.NotificationsUserProfilePage)1 AddTagsPane (org.xwiki.tag.test.po.AddTagsPane)1 TaggablePage (org.xwiki.tag.test.po.TaggablePage)1 AbstractTest (org.xwiki.test.ui.AbstractTest)1 AttachmentsPane (org.xwiki.test.ui.po.AttachmentsPane)1 FormElement (org.xwiki.test.ui.po.FormElement)1 ClassEditPage (org.xwiki.test.ui.po.editor.ClassEditPage)1 ObjectEditPage (org.xwiki.test.ui.po.editor.ObjectEditPage)1