use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class EditingPostTests method discussionsAdministratorOnDesktopCanSeeThatPostWasEditedByAdministratorOnPostDetailsPage.
// Discussions Administrator on desktop
@Test(groups = DISCUSSIONS_ADMINISTRATOR_DESKTOP_TEST_GROUP)
@Execute(asUser = User.DISCUSSIONS_ADMINISTRATOR)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void discussionsAdministratorOnDesktopCanSeeThatPostWasEditedByAdministratorOnPostDetailsPage() {
final PostEntity.Data data = updatePostAsStaffRemotely(createPostAsUserRemotely());
final PostEntity post = new PostDetailsPage().open(data.getId()).getPost().findPostById(data.getId());
Assertion.assertTrue(post.hasEditedBySection(), SHOULD_HAVE_EDITED_BY_SECTION_MESSAGE);
Assertion.assertEquals(post.getEditedBySectionText(), EDITED_BY_QA_STAFF, SHOULD_HAVE_DETAILED_INFORMATION_MESSAGE);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class FollowingPostTests method userOnMobileCanFollowAndUnfollowPostOnFollowedPostsPage.
/**
* By default all posts on "Followed" tab are followed.
*/
@Test(groups = "discussions-userMobileFollowingPost", enabled = false)
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@RelatedIssue(issueID = "SOC-3674", comment = "Introducing pagination")
public void userOnMobileCanFollowAndUnfollowPostOnFollowedPostsPage() {
createPostAsUserRemotely();
final FollowPage page = FollowPage.open();
final PostActionsRow postActions = clickUnfollowOn(page);
Assertion.assertFalse(postActions.isFollowed(), SHOULD_UNFOLLOW_POST);
clickFollowOn(page);
Assertion.assertTrue(postActions.isFollowed(), SHOULD_FOLLOW_POST);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class FollowingPostTests method discussionsAdministratorOnDesktopCanFollowPostOnReportedPostsPage.
// Discussions Administrator on desktop
@Test(groups = "discussions-discussionsAdministratorDesktopFollowingPost")
@Execute(asUser = User.DISCUSSIONS_ADMINISTRATOR)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void discussionsAdministratorOnDesktopCanFollowPostOnReportedPostsPage() {
createAndReportPostAsUserRemotely();
final PostActionsRow postActions = clickFollowOn(new ReportedPostsAndRepliesPage().open());
Assertion.assertTrue(postActions.isFollowed(), SHOULD_FOLLOW_POST);
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class DeleteAllPostsByUserTests method clickDeleteAllDesktopDisplaysConfirmationDialog.
// GENERAL - no specific user permissions
@Test(groups = "discussions-deleteAllPostsByUserDesktop")
@Execute(asUser = User.STAFF)
@InBrowser(browserSize = DESKTOP_RESOLUTION)
public void clickDeleteAllDesktopDisplaysConfirmationDialog() {
DeleteDialog confirmationDialog = getDeleteAllButton(userWithPosts.getUserId()).click();
assertTrue(confirmationDialog.isVisible());
}
use of com.wikia.webdriver.common.core.annotations.InBrowser in project selenium-tests by Wikia.
the class EditingPostTests method userOnMobileCanNotSeeThatPostWasEditedByAdministratorOnPostsListPage.
@Test(groups = USER_MOBILE_TEST_GROUP)
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileCanNotSeeThatPostWasEditedByAdministratorOnPostsListPage() {
final PostEntity.Data data = updatePostAsStaffRemotely(createPostAsUserRemotely());
final PostEntity post = new PostsListPage().open(data.getId()).getPost().findPostById(data.getId());
Assertion.assertFalse(post.hasEditedBySection(), SHOULD_NOT_HAVE_EDITED_BY_SECTION_MESSAGE);
}
Aggregations