use of com.wikia.webdriver.elements.mercury.components.discussions.common.PostEntity in project selenium-tests by Wikia.
the class ReportingPostTests method userOnDesktopCanReportPostOnPostDetailsPage.
@Test(groups = "discussions-loggedInUsersDesktopReporting")
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanReportPostOnPostDetailsPage() {
final PostEntity.Data data = cretePostRemotelyAsFirstUser();
final PostDetailsPage page = openPostDetailsPageAndWaitUntilLoaded(data.getId());
final PostEntity postEntity = page.getPost().findPostById(data.getId());
assertTrue(postCanBeReported(postEntity), CAN_REPORT_POST_MESSAGE);
}
use of com.wikia.webdriver.elements.mercury.components.discussions.common.PostEntity in project selenium-tests by Wikia.
the class ReportingPostTests method userOnMobileCanReportPostOnPostDetailsPage.
@Test(groups = "discussions-loggedInUsersMobileReporting")
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileCanReportPostOnPostDetailsPage() {
final PostEntity.Data data = cretePostRemotelyAsFirstUser();
final PostDetailsPage page = openPostDetailsPageAndWaitUntilLoaded(data.getId());
final PostEntity postEntity = page.getPost().findPostById(data.getId());
assertTrue(postCanBeReported(postEntity), CAN_REPORT_POST_MESSAGE);
}
Aggregations