use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class ReportingPostTests method openPostListPageAndWaitUntilLoaded.
private PostsListPage openPostListPageAndWaitUntilLoaded() {
final PostsListPage post = new PostsListPage().open();
post.waitForPageLoad();
return post;
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class ReportingPostTests method anonUserOnDesktopCanNotReportPostOnPostsListPage.
// Anonymous user on desktop
@Test(groups = "discussions-anonUserDesktopReporting")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonUserOnDesktopCanNotReportPostOnPostsListPage() {
final PostsListPage page = openPostListPageAndWaitUntilLoaded();
assertFalse(isReportPostOptionAvailableOn(page), NO_REPORT_POST_OPTION_MESSAGE);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class ReportingPostTests method anonUserOnMobileCanNotSeeDeletedPostOnPostsListPage.
@Test(groups = "discussions-anonUserMobileReporting")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void anonUserOnMobileCanNotSeeDeletedPostOnPostsListPage() {
final PostEntity.Data data = createAndReportAndDeletePostRemotely();
final PostsListPage postsListPage = openPostListPageAndWaitUntilLoaded();
final PostEntity post = postsListPage.getPost().findPostById(data.getId());
assertNull(post, ANON_NOT_VISIBLE_DELETED_POST_MESSAGE);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class ReportingPostTests method anonUserOnMobileCanNotReportPostOnPostsListPage.
// Anonymous user on mobile
@Test(groups = "discussions-anonUserMobileReporting")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void anonUserOnMobileCanNotReportPostOnPostsListPage() {
final PostsListPage page = openPostListPageAndWaitUntilLoaded();
assertFalse(isReportPostOptionAvailableOn(page), NO_REPORT_POST_OPTION_MESSAGE);
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage in project selenium-tests by Wikia.
the class CategoriesTests method discussionsAdministratorOnDesktopCanRemoveCategory.
@Test(groups = { DESKTOP })
@Execute(asUser = User.DISCUSSIONS_ADMINISTRATOR)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void discussionsAdministratorOnDesktopCanRemoveCategory() {
CategoryPill.Data data = setUp();
final String temporaryCategoryName = createUniqueCategoryName();
final PostsListPage page = new PostsListPage().open(siteId);
final CategoriesFieldset categoriesFieldset = page.getCategories();
canRemoveCategories(page, temporaryCategoryName, categoriesFieldset, data);
}
Aggregations