use of com.wikia.webdriver.elements.mercury.pages.discussions.UserPostsPage in project selenium-tests by Wikia.
the class ReportingPostTests method anonUserOnMobileCanNotSeeReportedPostOnUserPostsPage.
@Test(groups = "discussions-anonUserMobileReporting")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void anonUserOnMobileCanNotSeeReportedPostOnUserPostsPage() {
final PostEntity.Data data = createAndReportPostRemotelyAsFirstUser();
final UserPostsPage page = openUserPostsAndWaitUntilLoaded(data.getAuthorId());
assertFalse(postHasReportedIndicator(page), NO_REPORTED_INDICATOR_ON_POST_MESSAGE);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.UserPostsPage in project selenium-tests by Wikia.
the class ReportingPostTests method userOnMobileCanNotSeeDeletedPostOnUserPostsPage.
@Test(groups = "discussions-loggedInUsersMobileReporting")
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileCanNotSeeDeletedPostOnUserPostsPage() {
final PostEntity.Data data = createAndReportAndDeletePostRemotely();
final UserPostsPage page = openUserPostsAndWaitUntilLoaded(data.getAuthorId());
final PostEntity post = page.getPost().findPostById(data.getId());
assertNull(post, NOT_VISIBLE_DELETED_POST_MESSAGE);
}
Aggregations