Search in sources :

Example 1 with FollowPage

use of com.wikia.webdriver.elements.mercury.pages.discussions.FollowPage 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);
}
Also used : PostActionsRow(com.wikia.webdriver.elements.mercury.components.discussions.common.PostActionsRow) FollowPage(com.wikia.webdriver.elements.mercury.pages.discussions.FollowPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 2 with FollowPage

use of com.wikia.webdriver.elements.mercury.pages.discussions.FollowPage in project selenium-tests by Wikia.

the class FollowingPostTests method userOnDesktopCanFollowAndUnfollowPostOnFollowedPostsPage.

/**
   * By default all posts on "Followed" tab are followed.
   */
@Test(groups = "discussions-userDesktopFollowingPost", enabled = false)
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.FIREFOX, emulator = Emulator.GOOGLE_NEXUS_5)
@RelatedIssue(issueID = "SOC-3674", comment = "Introducing pagination")
public void userOnDesktopCanFollowAndUnfollowPostOnFollowedPostsPage() {
    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);
}
Also used : PostActionsRow(com.wikia.webdriver.elements.mercury.components.discussions.common.PostActionsRow) FollowPage(com.wikia.webdriver.elements.mercury.pages.discussions.FollowPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)2 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)2 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)2 PostActionsRow (com.wikia.webdriver.elements.mercury.components.discussions.common.PostActionsRow)2 FollowPage (com.wikia.webdriver.elements.mercury.pages.discussions.FollowPage)2 Test (org.testng.annotations.Test)2