use of com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage in project selenium-tests by Wikia.
the class ReportingPostTests method anonUserOnMobileCanNotSeeDeletedPostOnPostDetailsPage.
@Test(groups = "discussions-anonUserMobileReporting")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void anonUserOnMobileCanNotSeeDeletedPostOnPostDetailsPage() {
final PostEntity.Data data = createAndReportAndDeletePostRemotely();
final PostDetailsPage page = openPostDetailsPageAndWaitUntilLoaded(data.getId());
assertTrue(page.getErrorMessages().isErrorMessagePresent(), ANON_NOT_VISIBLE_DELETED_POST_MESSAGE);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage in project selenium-tests by Wikia.
the class ReportingPostTests method userCannotReReportPostOnPostDetailPage.
private void userCannotReReportPostOnPostDetailPage() {
final PostEntity.Data data = createAndReportPostRemotelyAsFirstUser();
validatePostRemotelyAsDiscussionsModerator(data);
final PostDetailsPage page = openPostDetailsPageAndWaitUntilLoaded(data.getId());
final PostEntity postEntity = page.getPost().findPostById(data.getId());
assertFalse(postEntity.isReported(), NO_REPORTED_INDICATOR_ON_POST_MESSAGE);
assertFalse(isReportPostOptionAvailableFor(postEntity), NO_REPORT_POST_OPTION_MESSAGE);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage in project selenium-tests by Wikia.
the class ReportingPostTests method userOnDesktopCanNotSeeDeletedPostOnPostDetailsPage.
@Test(groups = "discussions-loggedInUsersDesktopReporting")
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanNotSeeDeletedPostOnPostDetailsPage() {
final PostEntity.Data data = createAndReportAndDeletePostRemotely();
final PostDetailsPage page = openPostDetailsPageAndWaitUntilLoaded(data.getId());
assertTrue(page.getErrorMessages().isErrorMessagePresent(), NOT_VISIBLE_DELETED_POST_MESSAGE);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage in project selenium-tests by Wikia.
the class LayoutTests method postDetailsListLoads.
/**
* TESTING METHODS SECTION
*/
private void postDetailsListLoads() {
Reply reply = new PostDetailsPage().openDefaultPost().getReply();
Assertion.assertFalse(reply.isPostDetailsListEmpty());
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostDetailsPage in project selenium-tests by Wikia.
the class LockingPostTests method lockPost.
private PostEntity lockPost(final PostEntity.Data data) {
PostDetailsPage page = new PostDetailsPage().open(data.getId());
final PostEntity postEntity = page.getPost().findNewestPost();
postEntity.clickMoreOptions().clickLockPostOption();
return postEntity;
}
Aggregations