Merge pull request #5789 from svbergerem/unnecessary-on-home-page-steps

Remove unnecessary 'on the home page' steps
This commit is contained in:
Jonne Haß 2015-03-16 16:37:41 +01:00
commit ea4b590943
20 changed files with 69 additions and 119 deletions

View file

@ -9,12 +9,10 @@ Feature: Blocking a user from the stream
And Alice has a post mentioning Bob And Alice has a post mentioning Bob
And I sign in as "bob@bob.bob" And I sign in as "bob@bob.bob"
Scenario: Blocking a user Scenario: Blocking a user
When I am on the home page
When I click on the first block button When I click on the first block button
And I confirm the alert And I confirm the alert
And I am on the home page And I go to the home page
Then I should not see any posts in my stream Then I should not see any posts in my stream
Scenario: Blocking a user from the profile page Scenario: Blocking a user from the profile page

View file

@ -18,7 +18,7 @@ Feature: following and being followed
And I am on "bob@bob.bob"'s page And I am on "bob@bob.bob"'s page
Then I should see "I am following you" Then I should see "I am following you"
And I am on the home page When I go to the home page
Then I should not see "I am following you" Then I should not see "I am following you"
Scenario: seeing public posts of someone you follow Scenario: seeing public posts of someone you follow
@ -28,7 +28,7 @@ Feature: following and being followed
And I am on "alice@alice.alice"'s page And I am on "alice@alice.alice"'s page
Then I should see "I am ALICE" Then I should see "I am ALICE"
When I am on the home page When I go to the home page
Then I should see "I am ALICE" Then I should see "I am ALICE"
Scenario: I follow a malicious user Scenario: I follow a malicious user
@ -47,24 +47,17 @@ Feature: following and being followed
Scenario: seeing non-public posts of someone you follow who also follows you Scenario: seeing non-public posts of someone you follow who also follows you
When I sign in as "alice@alice.alice" When I sign in as "alice@alice.alice"
And I am on "bob@bob.bob"'s page And I am on "bob@bob.bob"'s page
And I add the person to my "Besties" aspect And I add the person to my "Besties" aspect
And I add the person to my "Unicorns" aspect And I add the person to my "Unicorns" aspect
And I go to the home page
When I go to the home page
Then I should have 1 contact in "Unicorns" Then I should have 1 contact in "Unicorns"
Then I should have 1 contact in "Besties" And I should have 1 contact in "Besties"
When I am on the home page When I click the publisher and post "I am following you back"
And I click the publisher and post "I am following you back" And I sign out
Then I sign out And I sign in as "bob@bob.bob"
When I sign in as "bob@bob.bob"
Then I should have 1 contacts in "Besties" Then I should have 1 contacts in "Besties"
And I should see "I am following you back"
When I am on the home page
Then I should see "I am following you back"
Scenario: adding someone who follows you while creating a new aspect Scenario: adding someone who follows you while creating a new aspect
When I sign in as "alice@alice.alice" When I sign in as "alice@alice.alice"

View file

@ -12,5 +12,5 @@ Feature: donations
Scenario: Bitcoin donations Scenario: Bitcoin donations
Given I have configured a Bitcoin address Given I have configured a Bitcoin address
And I am on the home page And I go to the home page
Then I should see the Bitcoin address Then I should see the Bitcoin address

View file

@ -9,8 +9,7 @@ Feature: Keyboard navigation
And I sign in as "bob@bob.bob" And I sign in as "bob@bob.bob"
Scenario: navigate downwards Scenario: navigate downwards
When I am on the home page When I press the "J" key somewhere
And I press the "J" key somewhere
Then post 1 should be highlighted Then post 1 should be highlighted
And I should have navigated to the highlighted post And I should have navigated to the highlighted post
@ -24,15 +23,13 @@ Feature: Keyboard navigation
And I close the publisher And I close the publisher
Scenario: navigate upwards Scenario: navigate upwards
When I am on the home page When I scroll to post 3
And I scroll to post 3 And I press the "K" key somewhere
When I press the "K" key somewhere
Then post 2 should be highlighted Then post 2 should be highlighted
And I should have navigated to the highlighted post And I should have navigated to the highlighted post
Scenario: expand the comment form in the main stream Scenario: expand the comment form in the main stream
When I am on the home page Given the first comment field should be closed
Then the first comment field should be closed
When I press the "J" key somewhere When I press the "J" key somewhere
And I press the "C" key somewhere And I press the "C" key somewhere
Then the first comment field should be open Then the first comment field should be open

View file

@ -14,9 +14,6 @@ Feature: Liking posts
And I sign in as "alice@alice.alice" And I sign in as "alice@alice.alice"
Scenario: Liking and unliking a post from the stream Scenario: Liking and unliking a post from the stream
When I am on the home page
Then I should see "Bob"
And I should see "I like unicorns"
When I like the post "I like unicorns" in the stream When I like the post "I like unicorns" in the stream
Then I should see a ".likes" within "#main_stream .stream_element" Then I should see a ".likes" within "#main_stream .stream_element"
@ -32,9 +29,7 @@ Feature: Liking posts
Then I should not see a ".count" within "#single-post-interactions" Then I should not see a ".count" within "#single-post-interactions"
Scenario: Someone likes my post Scenario: Someone likes my post
When I am on the home page When I like the post "I like unicorns" in the stream
And I like the post "I like unicorns" in the stream
And I sign out And I sign out
And I sign in as "bob@bob.bob" And I sign in as "bob@bob.bob"
And I am on the home page
Then I should see a ".likes" within "#main_stream .stream_element" Then I should see a ".likes" within "#main_stream .stream_element"

View file

@ -65,8 +65,6 @@ Feature: User manages contacts
Scenario: clicking on the contacts link in the header with zero contacts directs a user to the featured users page Scenario: clicking on the contacts link in the header with zero contacts directs a user to the featured users page
Given I am signed in Given I am signed in
And I have 0 contacts And I have 0 contacts
And I am on the home page
And I click on my name in the header And I click on my name in the header
When I follow "Contacts" When I follow "Contacts"
Then I should see "Community spotlight" within ".span9" Then I should see "Community spotlight" within ".span9"
@ -74,8 +72,6 @@ Feature: User manages contacts
Scenario: clicking on the contacts link in the header with contacts does not send a user to the featured users page Scenario: clicking on the contacts link in the header with contacts does not send a user to the featured users page
Given I am signed in Given I am signed in
And I have 2 contacts And I have 2 contacts
And I am on the home page
And I click on my name in the header And I click on my name in the header
When I follow "Contacts" When I follow "Contacts"
Then I should not see "Community spotlight" within ".span9" Then I should not see "Community spotlight" within ".span9"

View file

@ -12,7 +12,6 @@ Feature: Mentions
And a user with email "bob@bob.bob" is connected with "alice@alice.alice" And a user with email "bob@bob.bob" is connected with "alice@alice.alice"
And Alice has a post mentioning Bob And Alice has a post mentioning Bob
When I sign in as "alice@alice.alice" When I sign in as "alice@alice.alice"
And I am on the home page
And I follow "Bob Jones" And I follow "Bob Jones"
Then I should see "Bob Jones" Then I should see "Bob Jones"
@ -23,7 +22,6 @@ Feature: Mentions
| Alice Smith | alice@alice.alice | | Alice Smith | alice@alice.alice |
And a user with email "bob@bob.bob" is connected with "alice@alice.alice" And a user with email "bob@bob.bob" is connected with "alice@alice.alice"
When I sign in as "alice@alice.alice" When I sign in as "alice@alice.alice"
And I am on the home page
And I expand the publisher And I expand the publisher
When I fill in the following: When I fill in the following:
| status_message_fake_text | @Bo | | status_message_fake_text | @Bo |

View file

@ -5,21 +5,19 @@ Feature: mentioning a contact from their profile page
I want to mention someone more cool than the average bear I want to mention someone more cool than the average bear
Background: Background:
Given I am on the home page Given following users exist:
And following users exist:
| username | | username |
| bob | | bob |
| alice | | alice |
When I sign in as "bob@bob.bob"
And a user with username "bob" is connected with "alice" And a user with username "bob" is connected with "alice"
And I sign in as "bob@bob.bob"
And I have following aspects: And I have following aspects:
| PostingTo | | PostingTo |
| NotPostingThingsHere | | NotPostingThingsHere |
And I have user with username "alice" in an aspect called "PostingTo" And I have user with username "alice" in an aspect called "PostingTo"
And I have user with username "alice" in an aspect called "NotPostingThingsHere" And I have user with username "alice" in an aspect called "NotPostingThingsHere"
And I go to the home page
And I am on the home page
Scenario: mentioning while posting to all aspects Scenario: mentioning while posting to all aspects
Given I am on "alice@alice.alice"'s page Given I am on "alice@alice.alice"'s page

View file

@ -9,8 +9,7 @@ Feature: oembed
| username | email | | username | email |
| Alice Smith | alice@alice.alice | | Alice Smith | alice@alice.alice |
And I have several oEmbed data in cache And I have several oEmbed data in cache
When I sign in as "alice@alice.alice" And I sign in as "alice@alice.alice"
And I am on the home page
Scenario: Post a secure video link Scenario: Post a secure video link
Given I expand the publisher Given I expand the publisher

View file

@ -1,13 +1,9 @@
@javascript @javascript
Feature: viewing the photo lightbox Feature: viewing the photo lightbox
Background: Background:
Given I am on the home page Given a user with username "bob"
And a user with username "bob" And I sign in as "bob@bob.bob"
And I expand the publisher
When I sign in as "bob@bob.bob"
And I am on the home page
Given I expand the publisher
And I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload" And I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload"
And I fill in the following: And I fill in the following:
| status_message_fake_text | Look at this dog | | status_message_fake_text | Look at this dog |

View file

@ -11,7 +11,6 @@ Feature: preview posts in the stream
| Alice Smith | alice@alice.alice | | Alice Smith | alice@alice.alice |
And a user with email "bob@bob.bob" is connected with "alice@alice.alice" And a user with email "bob@bob.bob" is connected with "alice@alice.alice"
When I sign in as "bob@bob.bob" When I sign in as "bob@bob.bob"
And I am on the home page
Then I should not see any posts in my stream Then I should not see any posts in my stream
Scenario: preview and post a text-only message Scenario: preview and post a text-only message

View file

@ -6,7 +6,6 @@ Feature: posting with a poll
| username | | username |
| bob | | bob |
And I sign in as "bob@bob.bob" And I sign in as "bob@bob.bob"
And I am on the home page
Scenario: expanding the publisher Scenario: expanding the publisher
Given "#poll_creator_container" is hidden Given "#poll_creator_container" is hidden

View file

@ -9,14 +9,14 @@ Feature: posting from the main page
| username | | username |
| bob | | bob |
| alice | | alice |
And I sign in as "bob@bob.bob"
And a user with username "bob" is connected with "alice" And a user with username "bob" is connected with "alice"
Given I have following aspects: And I sign in as "bob@bob.bob"
And I have following aspects:
| PostingTo | | PostingTo |
| NotPostingThingsHere | | NotPostingThingsHere |
And I have user with username "alice" in an aspect called "PostingTo" And I have user with username "alice" in an aspect called "PostingTo"
And I have user with username "alice" in an aspect called "NotPostingThingsHere" And I have user with username "alice" in an aspect called "NotPostingThingsHere"
And I am on the home page And I go to the home page
Scenario: expanding the publisher Scenario: expanding the publisher
Given ".markdownIndications" is hidden Given ".markdownIndications" is hidden

View file

@ -4,13 +4,12 @@ Feature: posting from own profile page
I want to post from my profile page I want to post from my profile page
Background: Background:
Given I am on the home page Given a user with username "alice"
And a user with username "alice" And I sign in as "alice@alice.alice"
When I sign in as "alice@alice.alice" And I have following aspects:
Given I have following aspects:
| Family | | Family |
| Work | | Work |
Given I am on "alice@alice.alice"'s page And I am on "alice@alice.alice"'s page
Scenario: posting some text Scenario: posting some text
Given I expand the publisher Given I expand the publisher
@ -22,7 +21,7 @@ Feature: posting from own profile page
Then I should see "I want to understand people" Then I should see "I want to understand people"
When I am on the home page When I go to the home page
Then I should see "I want to understand people" Then I should see "I want to understand people"
When I am on the aspects page When I am on the aspects page
@ -39,7 +38,7 @@ Feature: posting from own profile page
And I attach "spec/fixtures/button.png" to the publisher And I attach "spec/fixtures/button.png" to the publisher
And I submit the publisher And I submit the publisher
When I am on the home page When I go to the home page
Then I should see a "img" within ".stream_element div.photo_attachments" Then I should see a "img" within ".stream_element div.photo_attachments"
And I should see "who am I?" within ".stream_element" And I should see "who am I?" within ".stream_element"

View file

@ -4,20 +4,18 @@ Feature: Posting from the tag page
I want to post from the tag page I want to post from the tag page
Background: Background:
Given I am on the home page Given a user with username "alice"
And a user with username "alice" And I sign in as "alice@alice.alice"
When I sign in as "alice@alice.alice"
And I am on the tag page for "cats" And I am on the tag page for "cats"
Scenario: posting some text Scenario: posting some text
Given I expand the publisher When I expand the publisher
And I have turned off jQuery effects And I have turned off jQuery effects
And I append "I like cats." to the publisher And I append "I like cats." to the publisher
And I press "Share" And I press "Share"
Then "#cats I like cats." should be post 1 Then "#cats I like cats." should be post 1
When I am on the home page When I go to the home page
Then "#cats I like cats." should be post 1 Then "#cats I like cats." should be post 1
When I am on the tag page for "cats" When I am on the tag page for "cats"

View file

@ -9,18 +9,14 @@ Feature: collapsing and expanding long posts
| username | | username |
| bob | | bob |
And I sign in as "bob@bob.bob" And I sign in as "bob@bob.bob"
And I am on the home page
Scenario: post a very long message Scenario: post a very long message
Given I post an extremely long status message Given I post an extremely long status message
And I go to the home page And I go to the home page
Then the post should be collapsed Then the post should be collapsed
Scenario: expand a very long message Scenario: expand a very long message
Given I post an extremely long status message Given I post an extremely long status message
And I go to the home page And I go to the home page
And I expand the post And I expand the post
Then the post should be expanded Then the post should be expanded

View file

@ -6,9 +6,8 @@
| username | | username |
| bob | | bob |
| alice | | alice |
And I sign in as "bob@bob.bob"
And a user with username "bob" is connected with "alice" And a user with username "bob" is connected with "alice"
And I am on the home page And I sign in as "bob@bob.bob"
Scenario: hide a contact's post Scenario: hide a contact's post
Given I expand the publisher Given I expand the publisher
@ -60,7 +59,4 @@
And I open the show page of the "Here is a post to test with" post And I open the show page of the "Here is a post to test with" post
And I click to delete the post And I click to delete the post
And I confirm the alert And I confirm the alert
Then I should be on the stream page Then I should be on the stream page

View file

@ -15,27 +15,20 @@ Feature: Unfollowing
Scenario: stop following someone while on their profile page Scenario: stop following someone while on their profile page
When I am on "alice@alice.alice"'s page When I am on "alice@alice.alice"'s page
And I remove the person from my "Besties" aspect And I remove the person from my "Besties" aspect
And I am on the home page And I go to the home page
Then I should have 0 contacts in "Besties"
Then I should have 0 contacts in "Besties"
When I sign out
Then I sign out And I sign in as "alice@alice.alice"
When I sign in as "alice@alice.alice" And I am on "bob@bob.bob"'s page
And I am on "bob@bob.bob"'s page Then I should not see "is sharing with you."
Then I should not see "is sharing with you." Scenario: stop following someone while on the contacts page
When I go to the contacts page
Scenario: stop following someone while on the contacts page And I follow "Besties"
When I go to the home page And I remove the first person from the aspect
And I go to the contacts page And I follow "My contacts"
And I follow "Besties"
And I remove the first person from the aspect
When I follow "My contacts"
Then I should have 0 contacts in "Besties" Then I should have 0 contacts in "Besties"
When I sign out When I sign out