use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage 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.PostsListPage in project selenium-tests by Wikia.
the class NavigatingTests method clickUsernameLoadsUserPage.
private void clickUsernameLoadsUserPage() {
PostsListPage page = new PostsListPage().open();
page.getPost().clickUsernameLink();
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 NavigatingTests method backToWiki.
/**
* TESTING METHODS SECTION
*/
private void backToWiki() {
PostsListPage page = new PostsListPage().open();
BackButtons backButtons = page.open().getBackButtons();
backButtons.clickBackToWikiLink();
Assertion.assertTrue(page.isWikiFirstHeaderVisible());
Assertion.assertTrue(driver.getCurrentUrl().contains(wikiURL));
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class PromotingTests method findPromoting.
/**
* TESTING METHODS SECTION
*/
private Promoting findPromoting() {
String siteId = Discussions.excractSiteIdFromWikiName(MercuryWikis.FALLOUT);
PostsListPage page = new PostsListPage().open(siteId);
return page.getPromoting();
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class ZeroErrorStateTests method userSeesProperMessageWhenOpensEmptyPostsListPage.
private void userSeesProperMessageWhenOpensEmptyPostsListPage() {
ErrorMessages errorMessage = new PostsListPage().open().getErrorMessages();
Assertion.assertTrue(errorMessage.isEmptyPostsListMessageDisplayed());
Assertion.assertEquals(errorMessage.getEmptyPostsListMessageText(), "No posts yet. Get the discussion started, create the first post now!");
}
Aggregations