use of com.wikia.webdriver.elements.mercury.pages.discussions.ReportedPostsAndRepliesPage in project selenium-tests by Wikia.
the class ReportingPostTests method moderatorCanSeeReReportedPostOnReportedPostsPage.
private void moderatorCanSeeReReportedPostOnReportedPostsPage() {
final PostEntity.Data data = createAndReportPostRemotelyAsFirstUser();
validatePostRemotelyAsDiscussionsModerator(data);
reportPostRemotelyAsSecondUser(data);
ReportedPostsAndRepliesPage open = new ReportedPostsAndRepliesPage().open();
final PostEntity post = open.getPost().findPostById(data.getId());
assertNotNull(post, DISCUSSIONS_MODERATOR_SHOULD_SEE_RE_REPORTED_POST);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.ReportedPostsAndRepliesPage in project selenium-tests by Wikia.
the class ReportingPostTests method moderatorCanNotSeeApprovedPostOnReportedPostsPage.
private void moderatorCanNotSeeApprovedPostOnReportedPostsPage() {
final PostEntity.Data data = createAndReportPostRemotelyAsFirstUser();
reportPostRemotelyAsSecondUser(data);
validatePostRemotelyAsDiscussionsModerator(data);
final ReportedPostsAndRepliesPage page = new ReportedPostsAndRepliesPage().open();
final PostEntity post = page.getPost().findPostById(data.getId());
assertNull(post, NOT_VISIBLE_DELETED_POST_MESSAGE);
}
Aggregations