Search in sources :

Example 6 with ReportedPostsAndRepliesPage

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);
}
Also used : ReportedPostsAndRepliesPage(com.wikia.webdriver.elements.mercury.pages.discussions.ReportedPostsAndRepliesPage) PostEntity(com.wikia.webdriver.elements.mercury.components.discussions.common.PostEntity)

Example 7 with ReportedPostsAndRepliesPage

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);
}
Also used : ReportedPostsAndRepliesPage(com.wikia.webdriver.elements.mercury.pages.discussions.ReportedPostsAndRepliesPage) PostEntity(com.wikia.webdriver.elements.mercury.components.discussions.common.PostEntity)

Aggregations

ReportedPostsAndRepliesPage (com.wikia.webdriver.elements.mercury.pages.discussions.ReportedPostsAndRepliesPage)7 Execute (com.wikia.webdriver.common.core.annotations.Execute)4 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)4 PostActionsRow (com.wikia.webdriver.elements.mercury.components.discussions.common.PostActionsRow)4 PostEntity (com.wikia.webdriver.elements.mercury.components.discussions.common.PostEntity)4 Test (org.testng.annotations.Test)4 ErrorMessages (com.wikia.webdriver.elements.mercury.components.discussions.common.ErrorMessages)1