Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 44 lines (37 sloc) 1.476 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
@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:
| username |
| bob |
| alice |

When I sign in as "bob@bob.bob"
And I post a status with the text "I am da #boss"
When I go to the destroy user session page
And I sign in as "alice@alice.alice"
And I search for "#boss"
And I press "Follow #boss"
And I wait for the ajax to finish

Scenario: can post a message from the tag page
Then I should see "#boss" within "#publisher"
And I post a status with the text "#boss from the tag page"
And I search for "#boss"
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: can stop following a tag from the tag page
When I press "Following #boss"
And I go to the followed tags stream page
Then I should not see "#boss" within ".left_nav"

Scenario: can stop following a tag from the homepage
When I go to the followed tags stream page
And I preemptively confirm the alert
And I hover over the "li.unfollow#tag-following-boss"
And I follow "unfollow_boss"
And I wait for the ajax to finish
Then I should not see "#tag-following-boss" within ".left_nav"
Something went wrong with that request. Please try again.