Skip to content
Extraits de code Groupes Projets
Valider d40cbd0b rédigé par Steffen van Bergerem's avatar Steffen van Bergerem
Parcourir les fichiers

Remove unnecessary 'on the home page' steps

parent 256d7862
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Affichage de
avec 61 ajouts et 111 suppressions
...@@ -9,12 +9,10 @@ Feature: Blocking a user from the stream ...@@ -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
......
...@@ -50,4 +50,4 @@ Feature: Change password ...@@ -50,4 +50,4 @@ Feature: Change password
Given I am on forgot password page Given I am on forgot password page
When I fill out forgot password form with "notanemail" When I fill out forgot password form with "notanemail"
And I submit forgot password form And I submit forgot password form
Then I should see "No account with this email exists" Then I should see "No account with this email exists"
...@@ -18,7 +18,7 @@ Feature: following and being followed ...@@ -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 ...@@ -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 ...@@ -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
And I click the publisher and post "I am following you back"
Then I sign out
When I sign in as "bob@bob.bob" When I click the publisher and post "I am following you back"
And I sign out
And 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"
......
@javascript @javascript
Feature: donations Feature: donations
In order to accept donation In order to accept donation
As a podmin As a podmin
I want a donation box shown on the stream page I want a donation box shown on the stream page
...@@ -12,5 +12,5 @@ Feature: donations ...@@ -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
...@@ -9,8 +9,7 @@ Feature: Keyboard navigation ...@@ -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 ...@@ -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
...@@ -14,12 +14,9 @@ Feature: Liking posts ...@@ -14,12 +14,9 @@ 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"
When I unlike the post "I like unicorns" in the stream When I unlike the post "I like unicorns" in the stream
Then I should not see a ".likes" within "#main_stream .stream_element" Then I should not see a ".likes" within "#main_stream .stream_element"
...@@ -27,14 +24,12 @@ Feature: Liking posts ...@@ -27,14 +24,12 @@ Feature: Liking posts
When I open the show page of the "I like unicorns" post When I open the show page of the "I like unicorns" post
And I click to like the post And I click to like the post
Then I should see a ".count" within "#single-post-interactions" Then I should see a ".count" within "#single-post-interactions"
When I click to unlike the post When I click to unlike the post
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"
...@@ -65,8 +65,6 @@ Feature: User manages contacts ...@@ -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 ...@@ -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"
...@@ -12,7 +12,6 @@ Feature: Mentions ...@@ -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 ...@@ -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 |
......
...@@ -5,21 +5,19 @@ Feature: mentioning a contact from their profile page ...@@ -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
......
...@@ -94,7 +94,7 @@ Feature: Notifications ...@@ -94,7 +94,7 @@ Feature: Notifications
And I sign out And I sign out
When I sign in as "alice@alice.alice" When I sign in as "alice@alice.alice"
And I follow "Notifications" in the header And I follow "Notifications" in the header
And I active the first hovercard after loading the notifications page And I active the first hovercard after loading the notifications page
When I press the aspect dropdown When I press the aspect dropdown
Then the aspect dropdown should be visible Then the aspect dropdown should be visible
...@@ -117,4 +117,4 @@ Feature: Notifications ...@@ -117,4 +117,4 @@ Feature: Notifications
When I scroll down on the notifications dropdown When I scroll down on the notifications dropdown
Then I should have scrolled down on the notification dropdown Then I should have scrolled down on the notification dropdown
And I wait for notifications to load And I wait for notifications to load
Then there should be 15 notifications loaded Then there should be 15 notifications loaded
\ No newline at end of file
...@@ -9,8 +9,7 @@ Feature: oembed ...@@ -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
......
@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 |
......
...@@ -11,7 +11,6 @@ Feature: preview posts in the stream ...@@ -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
......
...@@ -6,8 +6,7 @@ Feature: posting with a poll ...@@ -6,8 +6,7 @@ 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
When I expand the publisher When I expand the publisher
...@@ -24,7 +23,7 @@ Feature: posting with a poll ...@@ -24,7 +23,7 @@ Feature: posting with a poll
When I expand the publisher When I expand the publisher
And I click on selector "#poll_creator" And I click on selector "#poll_creator"
And I fill in values for the first two options And I fill in values for the first two options
And I lose focus And I lose focus
Then I should see 3 options Then I should see 3 options
Scenario: delete an option Scenario: delete an option
...@@ -32,7 +31,7 @@ Feature: posting with a poll ...@@ -32,7 +31,7 @@ Feature: posting with a poll
When I expand the publisher When I expand the publisher
And I click on selector "#poll_creator" And I click on selector "#poll_creator"
And I fill in values for the first two options And I fill in values for the first two options
And I lose focus And I lose focus
And I delete the last option And I delete the last option
Then I should see 2 option Then I should see 2 option
And I should not see a remove icon And I should not see a remove icon
......
...@@ -9,14 +9,14 @@ Feature: posting from the main page ...@@ -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
......
...@@ -4,13 +4,12 @@ Feature: posting from own profile page ...@@ -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 ...@@ -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 ...@@ -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"
......
...@@ -4,20 +4,18 @@ Feature: Posting from the tag page ...@@ -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"
......
@javascript @javascript
Feature: collapsing and expanding long posts Feature: collapsing and expanding long posts
In order to tame the lengths of posts in my stream In order to tame the lengths of posts in my stream
As a rocket scientist As a rocket scientist
I want long posts to be collapsed and expand on click I want long posts to be collapsed and expand on click
...@@ -9,18 +9,14 @@ Feature: collapsing and expanding long posts ...@@ -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
...@@ -6,10 +6,9 @@ ...@@ -6,10 +6,9 @@
| 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
When I write the status message "Here is a post to test with" When I write the status message "Here is a post to test with"
...@@ -17,13 +16,13 @@ ...@@ -17,13 +16,13 @@
And I log out And I log out
And I sign in as "alice@alice.alice" And I sign in as "alice@alice.alice"
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 hide the post And I click to hide 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
Scenario: block a contact Scenario: block a contact
Given I expand the publisher Given I expand the publisher
When I write the status message "Here is a post to test with" When I write the status message "Here is a post to test with"
...@@ -31,13 +30,13 @@ ...@@ -31,13 +30,13 @@
And I log out And I log out
And I sign in as "alice@alice.alice" And I sign in as "alice@alice.alice"
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 block the user And I click to block the user
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
Scenario: report a contact Scenario: report a contact
Given I expand the publisher Given I expand the publisher
When I write the status message "Here is a post to test with" When I write the status message "Here is a post to test with"
...@@ -45,13 +44,13 @@ ...@@ -45,13 +44,13 @@
And I log out And I log out
And I sign in as "alice@alice.alice" And I sign in as "alice@alice.alice"
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 report the post And I click to report the post
And I confirm the alert And I confirm the alert
And I should see a flash message containing "The report has successfully been created" And I should see a flash message containing "The report has successfully been created"
Scenario: delete own post Scenario: delete own post
Given I expand the publisher Given I expand the publisher
When I write the status message "Here is a post to test with" When I write the status message "Here is a post to test with"
...@@ -60,7 +59,4 @@ ...@@ -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
\ No newline at end of file
...@@ -15,27 +15,20 @@ Feature: Unfollowing ...@@ -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"
Then I sign out When I sign out
When I sign in as "alice@alice.alice" And 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 Scenario: stop following someone while on the contacts page
When I go to the home page When I go to the contacts page
And I go to the contacts page
And I follow "Besties" And I follow "Besties"
And I remove the first person from the aspect And I remove the first person from the aspect
And I follow "My contacts"
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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter