Search in sources :

Example 1 with PageWithPosts

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

the class ReportingPostTests method userCannotSeeReportedIndicatorOnPostsReportedByAnotherUserOnUserPostsPageAndCanReportThatPost.

private void userCannotSeeReportedIndicatorOnPostsReportedByAnotherUserOnUserPostsPageAndCanReportThatPost() {
    final PostEntity.Data data = createAndReportPostRemotelyAsFirstUser();
    final PageWithPosts page = openUserPostsAndWaitUntilLoaded(data.getAuthorId());
    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)

Example 2 with PageWithPosts

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

the class LockingPostTests method findMoreOptionsOnUserPostsPage.

private MoreOptionsPopOver findMoreOptionsOnUserPostsPage() {
    final PostEntity.Data data = DiscussionsOperations.using(User.USER, driver).createPostWithUniqueData();
    final PageWithPosts page = new UserPostsPage().open(data.getAuthorId());
    return findMoreOptions(page, data);
}
Also used : PageWithPosts(com.wikia.webdriver.elements.mercury.pages.discussions.PageWithPosts) UserPostsPage(com.wikia.webdriver.elements.mercury.pages.discussions.UserPostsPage) PostEntity(com.wikia.webdriver.elements.mercury.components.discussions.common.PostEntity)

Example 3 with PageWithPosts

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

the class LockingPostTests method findMoreOptionsOnPostDetailsPage.

private MoreOptionsPopOver findMoreOptionsOnPostDetailsPage() {
    final PostEntity.Data data = DiscussionsOperations.using(User.USER, driver).createPostWithUniqueData();
    final PageWithPosts page = new PostDetailsPage().open(data.getId());
    return findMoreOptions(page);
}
Also used : PostDetailsPage(com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage) PageWithPosts(com.wikia.webdriver.elements.mercury.pages.discussions.PageWithPosts) PostEntity(com.wikia.webdriver.elements.mercury.components.discussions.common.PostEntity)

Example 4 with PageWithPosts

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

the class LockingPostTests method findMoreOptionsOnPostsListPage.

private MoreOptionsPopOver findMoreOptionsOnPostsListPage() {
    PostEntity.Data data = DiscussionsOperations.using(User.USER, driver).createPostWithUniqueData();
    final PageWithPosts page = new PostsListPage().open();
    return findMoreOptions(page, data);
}
Also used : PostsListPage(com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage) PageWithPosts(com.wikia.webdriver.elements.mercury.pages.discussions.PageWithPosts) PostEntity(com.wikia.webdriver.elements.mercury.components.discussions.common.PostEntity)

Example 5 with PageWithPosts

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

the class ReportingPostTests method userCannotSeeReportedIndicatorOnPostsReportedByAnotherUserOnPostsListPageAndCanReportThatPost.

private void userCannotSeeReportedIndicatorOnPostsReportedByAnotherUserOnPostsListPageAndCanReportThatPost() {
    final PostEntity.Data data = createAndReportPostRemotelyAsFirstUser();
    final PageWithPosts page = openPostListPageAndWaitUntilLoaded();
    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