* removed wait_until where possible * replaced wait_until with DOM obersavtions * added match: :first to all finders that assumed getting the first element * replaced evaluate_script with execute_script where possible * replaced a few execute_script with DOM observations through Capybara * removed sleep where possible * replaced sleep with DOM obersvations * replaced "wait for ajax" with DOM obersavations * replaced alert confirmation with new selenium API * bump selenium webdriver * made any other fixes to get green again
45 lines
1.3 KiB
Gherkin
45 lines
1.3 KiB
Gherkin
@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 following users:
|
|
| email |
|
|
| bob@bob.bob |
|
|
| 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
|
|
|
|
Scenario: stop following someone while on their profile page
|
|
When I am on "alice@alice.alice"'s page
|
|
|
|
And I remove the person from my "Besties" aspect
|
|
And I am on the home page
|
|
|
|
Then I should have 0 contacts in "Besties"
|
|
|
|
Then I sign out
|
|
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 go to the contacts page
|
|
|
|
And I follow "Besties"
|
|
And I follow "add contacts to Besties"
|
|
|
|
And I press the first ".added" within "#facebox .contact_list ul > li:first-child"
|
|
|
|
When I follow "My Contacts"
|
|
Then I should have 0 contacts in "Besties"
|
|
|
|
When I sign out
|
|
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."
|