use of com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage in project selenium-tests by Wikia.
the class CreatingPostTests method assertPostWithWeirdCharactersDisplayedOnPostDetailsPage.
private void assertPostWithWeirdCharactersDisplayedOnPostDetailsPage(String wiki) {
PostEntity.Data post = createWeirdCharactersPostOnWiki(wiki);
String description = new PostDetailsPage().open(post.getId()).getPost().getPostDetailText();
try {
Assertion.assertStringContains(description, FIRST_LINE);
} finally {
cleanUp(post);
}
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage in project selenium-tests by Wikia.
the class CreatingReplyTests method userOnDesktopShouldFollowPostWhenAddedReplyOnPostDetailsPage.
@Test(groups = DESKTOP)
@Execute(asUser = User.USER_2)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopShouldFollowPostWhenAddedReplyOnPostDetailsPage() {
final PostDetailsPage page = new PostDetailsPage().open(createPostAsUserRemotely().getId());
final ReplyCreator replyCreator = page.getReplyCreatorDesktop();
assertThatPostIsFollowedWhenReplyAdded(page, replyCreator);
assertThatPostCanBeUnfollowed(page);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage in project selenium-tests by Wikia.
the class CreatingReplyTests method anonUserOnMobileCanNotWriteNewReply.
// Anonymous on mobile
@Test(groups = MOBILE)
@Execute(asUser = User.ANONYMOUS, onWikia = MercuryWikis.DISCUSSIONS_2)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void anonUserOnMobileCanNotWriteNewReply() {
final PostDetailsPage page = new PostDetailsPage().open(createPostAsUserRemotely().getId());
userOnMobileMustBeLoggedInToUseReplyCreator(page.getReplyCreatorMobile());
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage in project selenium-tests by Wikia.
the class CreatingReplyTests method userOnMobileShouldFollowPostWhenAddedReplyOnPostDetailsPage.
@Test(groups = MOBILE)
@Execute(asUser = User.USER_2, onWikia = MercuryWikis.DISCUSSIONS_2)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileShouldFollowPostWhenAddedReplyOnPostDetailsPage() {
final PostDetailsPage page = new PostDetailsPage().open(createPostAsUserRemotely().getId());
final ReplyCreator replyCreator = page.getReplyCreatorMobile();
assertThatPostIsFollowedWhenReplyAdded(page, replyCreator);
assertThatPostCanBeUnfollowed(page);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage in project selenium-tests by Wikia.
the class CreatingReplyTests method userOnDesktopCanCreateReplyOnPostDetailsPage.
@Test(groups = DESKTOP)
@Execute(asUser = User.USER_2)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanCreateReplyOnPostDetailsPage() {
final PostDetailsPage page = new PostDetailsPage().open(createPostAsUserRemotely().getId());
final ReplyCreator replyCreator = page.getReplyCreatorDesktop();
assertThatUserCanCreateReply(page, replyCreator);
}
Aggregations