Newer
Older
Sarah Mei
a validé
@javascript
Feature: Unfollowing
In order to stop seeing updates from self-important rockstars
As a user
I want to be able to stop following people
Background:
Given a user with email "bob@bob.bob"
And a user with email "alice@alice.alice"
When I sign in as "bob@bob.bob"
And I am on "alice@alice.alice"'s page
Sarah Mei
a validé
And I add the person to my "Besties" aspect
Sarah Mei
a validé
Scenario: stop following someone while on their profile page
When I am on "alice@alice.alice"'s page
Sarah Mei
a validé
And I remove the person from my "Besties" aspect
Sarah Mei
a validé
And I am on the home page
Then I should have 0 contacts in "Besties"
Then I go to the destroy user session page
When I sign in as "alice@alice.alice"
And I am on "bob@bob.bob"'s page
Then I should not see "is sharing with you."
Scenario: stop following someone while on the aspect edit page
When I go to the home page
And I follow "Contacts"
And I follow "Besties"
Sarah Mei
a validé
And I wait for the ajax to finish
And I preemptively confirm the alert
And I press the first ".added" within "#facebox .contact_list ul > li:first-child"
And I wait for the ajax to finish
When I follow "My Contacts"
Then I should have 0 contacts in "Besties"
When I go to the destroy user session page
And I sign in as "alice@alice.alice"
And I am on "bob@bob.bob"'s page
Then I should not see "is sharing with you."