114 lines
3.7 KiB
Gherkin
114 lines
3.7 KiB
Gherkin
@javascript
|
|
Feature: following and being followed
|
|
|
|
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
|
|
And I add the person to my "Besties" aspect
|
|
|
|
When I am on the home page
|
|
And I expand the publisher
|
|
And I fill in "status_message_fake_text" with "I am following you"
|
|
And I press "Share"
|
|
Then I go to the destroy user session page
|
|
|
|
Scenario: seeing a follower's posts on their profile page, but not in your stream
|
|
When I sign in as "alice@alice.alice"
|
|
And I am on "bob@bob.bob"'s page
|
|
Then I should see "I am following you"
|
|
|
|
And I am on the home page
|
|
Then I should not see "I am following you"
|
|
|
|
Scenario: seeing public posts of someone you follow
|
|
Given I sign in as "alice@alice.alice"
|
|
And I am on the home page
|
|
And I expand the publisher
|
|
And I fill in "status_message_fake_text" with "I am ALICE"
|
|
And I press the first ".toggle" within "#publisher"
|
|
And I press the first ".public" within "#publisher"
|
|
And I press "Share"
|
|
And I go to the destroy user session page
|
|
|
|
When I sign in as "bob@bob.bob"
|
|
And I am on "alice@alice.alice"'s page
|
|
Then I should see "I am ALICE"
|
|
|
|
When I am on the home page
|
|
Then I should see "I am ALICE"
|
|
|
|
Scenario: seeing non-public posts of someone you follow who also follows you
|
|
When I sign in as "alice@alice.alice"
|
|
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 "Unicorns" aspect
|
|
|
|
When I go to the home page
|
|
|
|
Then I should have 1 contact in "Unicorns"
|
|
Then I should have 1 contact in "Besties"
|
|
|
|
When I am on the home page
|
|
And I expand the publisher
|
|
When I fill in "status_message_fake_text" with "I am following you back"
|
|
And I press "Share"
|
|
Then I go to the destroy user session page
|
|
|
|
When I sign in as "bob@bob.bob"
|
|
Then I should have 1 contacts in "Besties"
|
|
|
|
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
|
|
When I sign in as "alice@alice.alice"
|
|
And I am on "bob@bob.bob"'s page
|
|
|
|
And I press the first ".toggle.button"
|
|
And I press the first "a" within ".add_aspect"
|
|
And I wait for the ajax to finish
|
|
|
|
And I fill in "Name" with "Super People" in the modal window
|
|
And I press "aspect_submit" in the modal window
|
|
And I wait for the ajax to finish
|
|
|
|
When I go to the home page
|
|
Then I should have 1 contact in "Super People"
|
|
Then I go to the destroy user session page
|
|
|
|
When I sign in as "bob@bob.bob"
|
|
Then I should have 1 contact in "Besties"
|
|
|
|
Scenario: interacting with the profile page of someone you follow who is not following you
|
|
When I sign in as "bob@bob.bob"
|
|
And I am on "alice@alice.alice"'s page
|
|
|
|
Then I should see "Besties"
|
|
Then I should see "Mention"
|
|
Then I should not see "Message"
|
|
|
|
Scenario: interacting with the profile page of someone who follows you but who you do not follow
|
|
Given I sign in as "alice@alice.alice"
|
|
And I am on "bob@bob.bob"'s page
|
|
|
|
Then I should see "Add contact"
|
|
And I should not see "Mention"
|
|
And I should not see "Message"
|
|
|
|
Scenario: interacting with the profile page of someone you follow who also follows you
|
|
Given I sign in as "alice@alice.alice"
|
|
And I am on "bob@bob.bob"'s page
|
|
|
|
When I add the person to my "Besties" aspect
|
|
And I wait for the ajax to finish
|
|
And I add the person to my "Unicorns" aspect
|
|
And I wait for the ajax to finish
|
|
|
|
When I go to "bob@bob.bob"'s page
|
|
Then I should see "All Aspects"
|
|
And I should see "Mention"
|
|
And I should see "Message"
|