// In this test class, the only user who logs in is admin.
getUtil().gotoPage(SPACE_NAME, DOC_NAME, "view", "xpage=xpart&vm=commentsinline.vm");
this.commentsTab.postComment(COMMENT_CONTENT, false);
ViewPage vp = new ViewPage();
// This opens with ?viewer=comments, don't explicitly load the comments tab
vp.waitUntilPageIsLoaded();
Assert.assertEquals(COMMENT_CONTENT,
this.commentsTab.getCommentContentByID(this.commentsTab.getCommentID(COMMENT_CONTENT)));
Assert.assertEquals(ADMIN,
this.commentsTab.getCommentAuthorByID(this.commentsTab.getCommentID(COMMENT_CONTENT)));
}