use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class LayoutTests method postsListLoads.
private void postsListLoads() {
Post post = new PostsListPage().open().getPost();
Assertion.assertFalse(post.isPostListEmpty());
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class EditingPostTests method userOnMobileCanNotSeeThatPostWasEditedByAdministratorOnPostsListPage.
@Test(groups = USER_MOBILE_TEST_GROUP)
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileCanNotSeeThatPostWasEditedByAdministratorOnPostsListPage() {
final PostEntity.Data data = updatePostAsStaffRemotely(createPostAsUserRemotely());
final PostEntity post = new PostsListPage().open(data.getId()).getPost().findPostById(data.getId());
Assertion.assertFalse(post.hasEditedBySection(), SHOULD_NOT_HAVE_EDITED_BY_SECTION_MESSAGE);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class NavigatingTests method clickAvatarLoadsUserPage.
private void clickAvatarLoadsUserPage() {
PostsListPage page = new PostsListPage().open();
page.getPost().clickUserAvatar();
Assertion.assertTrue(driver.getCurrentUrl().contains(URLsContent.USER_PROFILE.replace("%userName%", "")));
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class EditingPostTests method userOnDesktopCanNotSeeThatPostWasEditedByAdministratorOnPostsListPage.
@Test(groups = USER_DESKTOP_TEST_GROUP)
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanNotSeeThatPostWasEditedByAdministratorOnPostsListPage() {
final PostEntity.Data data = updatePostAsStaffRemotely(createPostAsUserRemotely());
final PostEntity post = new PostsListPage().open(data.getId()).getPost().findPostById(data.getId());
Assertion.assertFalse(post.hasEditedBySection(), SHOULD_NOT_HAVE_EDITED_BY_SECTION_MESSAGE);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class LayoutTests method userCanViewMorePosts.
private void userCanViewMorePosts() {
Post post = new PostsListPage().open().getPost();
int startingListLength = post.getPostsListLength();
post.clickLoadMore();
new Loading(driver).handleAsyncPageReload();
Assertion.assertTrue(startingListLength < post.getPostsListLength());
}
Aggregations