remove repeated step and stop using the publisher to create posts when is not necessary

This commit is contained in:
Fabian Rodriguez 2013-09-02 22:58:43 -03:00 committed by Fabian Rodriguez
parent f341e1e0e6
commit 9d5d0aaf73
6 changed files with 10 additions and 14 deletions

View file

@ -4,9 +4,9 @@ Feature: The activity stream
Given a user with username "bob"
When I sign in as "bob@bob.bob"
And I post "A- I like turtles"
And I post "B- barack obama is your new bicycle"
And I post "C- barack obama is a square"
And I click the publisher and post "A- I like turtles"
And I click the publisher and post "B- barack obama is your new bicycle"
And I click the publisher and post "C- barack obama is a square"
When I go to the activity stream page
Then "C- barack obama is a square" should be post 1

View file

@ -57,7 +57,7 @@ Feature: following and being followed
Then I should have 1 contact in "Besties"
When I am on the home page
And I post "I am following you back"
And I click the publisher and post "I am following you back"
Then I sign out
When I sign in as "bob@bob.bob"
@ -88,7 +88,7 @@ Feature: following and being followed
And I am on "alice@alice.alice"'s page
Then I should see "Besties"
Then I should see a "#mention_button" within "#profile"
Then I should see a "#mention_button" within "#profile"
Then I should not see a "#message_button" within "#profile"
Scenario: interacting with the profile page of someone who follows you but who you do not follow

View file

@ -19,7 +19,7 @@ Feature: posting
Scenario: can post a message from the tag page
Then I should see "#boss" within "#publisher"
And I post "#boss from the tag page"
And I click the publisher and post "#boss from the tag page"
And I search for "#boss"
Then I should see "#boss from the tag page"
@ -31,7 +31,7 @@ Feature: posting
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 post "#boss from the #boss tag page"
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

View file

@ -22,8 +22,8 @@ Scenario: Toggling nsfw state
And a user with email "laura@officeworkers.com"
And a user with email "laura@officeworkers.com" is connected with "tommy@pr0nking.com"
When I sign in as "tommy@pr0nking.com"
And I post "I love 0bj3ction4bl3 c0nt3nt!"
And I post "Sexy Senators Gone Wild!"
And I click the publisher and post "I love 0bj3ction4bl3 c0nt3nt!"
And I click the publisher and post "Sexy Senators Gone Wild!"
Then I should have 2 nsfw posts
#toggling global nsfw state

View file

@ -4,7 +4,7 @@ Feature: Issue #3382 The comments under postings are missing when using the #tag
Background:
Given a user named "Bob Jones" with email "bob@bob.bob"
And I sign in as "bob@bob.bob"
When I post "This is a post with a #tag"
When I post a status with the text "This is a post with a #tag"
And I am on the homepage
Scenario:

View file

@ -51,10 +51,6 @@ Then /^I should see "([^"]*)" as the first post in my stream$/ do |text|
first_post_text.should include(text)
end
When /^I post "([^"]*)"$/ do |text|
click_and_post(text)
end
When /^I click the publisher and post "([^"]*)"$/ do |text|
click_and_post(text)
end