follows_tags.feature 1.73 KB
Newer Older
1 2 3 4 5 6 7 8
@javascript
Feature: posting
  In order to take over humanity for the good of society
  As a rock star
  I want to see what humanity is saying about particular tags

  Background:
    Given following users exist:
9 10 11 12 13 14
      | username    | email             |
      | Alice Smith | alice@alice.alice |
      | Bob Jones   | bob@bob.bob       |
    And "bob@bob.bob" has a public post with text "I am da #boss"
    When I sign in as "alice@alice.alice"
    And I go to the tag page for "boss"
15
    And I press "Follow #boss"
16
    Then I should see a ".tag-following-action .followed"
17 18

  Scenario: can post a message from the tag page
19
    Then I should see "#boss " in the publisher
20 21
    When I click the publisher and post "#boss from the tag page"
    And I go to the tag page for "boss"
22 23 24 25 26 27 28 29 30 31 32 33 34 35
    Then I should see "#boss from the tag page"

  Scenario: see a tag that I am following
    When I go to the home page
    And I follow "#boss"
    Then I should see "I am da #boss" within "body"

  Scenario: see a tag that I am following and I post over there
    When I go to the home page
    And I follow "#boss"
    And I click the publisher and post "#boss from the #boss tag page"
    Then I should see "#boss from the #boss tag page" within "body"

  Scenario: can stop following a tag from the tag page
36
    When I press "Following #boss"
37 38 39 40 41 42 43
    And I go to the followed tags stream page
    Then I should not see "#boss" within "#tags_list"

  Scenario: can stop following a tag from the homepage
    When I go to the followed tags stream page
    And I unfollow the "boss" tag
    Then I should not see "#tag-following-boss" within "#tags_list"
44 45 46 47

  Scenario: Go to a tags page with no posts
    When I go to the tag page for "NoPosts"
    Then I should not see any posts in my stream