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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations