use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class ReportingPostTests method anonUserOnMobileCanNotReportPostOnUserPostsPage.
@Test(groups = "discussions-anonUserMobileReporting")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void anonUserOnMobileCanNotReportPostOnUserPostsPage() {
final UserPostsPage page = openDefaultUserPostPageWaiting();
assertFalse(isReportPostOptionAvailableOn(page), NO_REPORT_POST_OPTION_MESSAGE);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class ReportingPostTests method anonUserOnDesktopCanNotSeeDeletedPostOnPostsListPage.
@Test(groups = "discussions-anonUserDesktopReporting")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonUserOnDesktopCanNotSeeDeletedPostOnPostsListPage() {
final PostEntity.Data data = createAndReportAndDeletePostRemotely();
final PostEntity post = openPostListPageAndWaitUntilLoaded().getPost().findPostById(data.getId());
assertNull(post, ANON_NOT_VISIBLE_DELETED_POST_MESSAGE);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class ReportingPostTests method userOnDesktopCanReportPostOnPostsListPage.
@Test(groups = "discussions-loggedInUsersDesktopReporting")
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanReportPostOnPostsListPage() {
final PostEntity.Data data = cretePostRemotelyAsFirstUser();
final PostsListPage page = openPostListPageAndWaitUntilLoaded();
final PostEntity postEntity = page.getPost().findPostById(data.getId());
assertTrue(postCanBeReported(postEntity), CAN_REPORT_POST_MESSAGE);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class ReportingPostTests method userOnDesktopCanReportApprovedPostOnPostsListPage.
// Third user on desktop
@Test(groups = "discussions-loggedInUsersDesktopReporting")
@Execute(asUser = User.USER_3)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanReportApprovedPostOnPostsListPage() {
final PostEntity.Data data = createAndReportPostRemotelyAsFirstUser();
reportPostRemotelyAsSecondUser(data);
validatePostRemotelyAsDiscussionsModerator(data);
final PostsListPage page = openPostListPageAndWaitUntilLoaded();
final PostEntity postEntity = page.getPost().findPostById(data.getId());
assertFalse(postEntity.isReported(), REPORTED_INDICATOR_NOT_VISIBLE_FOR_USER_MESSAGE);
assertTrue(postCanBeReported(postEntity), CAN_REPORT_POST_MESSAGE);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser 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);
}
Aggregations