Search in sources :

Example 6 with PageWithPosts

use of com.wikia.webdriver.elements.mercury.pages.discussions.PageWithPosts in project selenium-tests by Wikia.

the class ReportingPostTests method userCannotSeeReportedIndicatorOnPostsReportedByAnotherUserOnPostDetailsPageAndCanReportThatPost.

private void userCannotSeeReportedIndicatorOnPostsReportedByAnotherUserOnPostDetailsPageAndCanReportThatPost() {
    final PostEntity.Data data = createAndReportPostRemotelyAsFirstUser();
    final PageWithPosts page = openPostDetailsPageAndWaitUntilLoaded(data.getId());
    final PostEntity postEntity = page.getPost().findPostById(data.getId());
    assertFalse(postEntity.isReported(), REPORTED_INDICATOR_NOT_VISIBLE_FOR_USER_MESSAGE);
    assertTrue(postCanBeReported(postEntity), CAN_REPORT_POST_MESSAGE);
}
Also used : PageWithPosts(com.wikia.webdriver.elements.mercury.pages.discussions.PageWithPosts) PostEntity(com.wikia.webdriver.elements.mercury.components.discussions.common.PostEntity)

Aggregations

PostEntity (com.wikia.webdriver.elements.mercury.components.discussions.common.PostEntity)6 PageWithPosts (com.wikia.webdriver.elements.mercury.pages.discussions.PageWithPosts)6 PostDetailsPage (com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage)1 PostsListPage (com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage)1 UserPostsPage (com.wikia.webdriver.elements.mercury.pages.discussions.UserPostsPage)1