diaspora/features/mentions_from_profile_page.feature
Sarah Mei e1f80acdcf Fix occassional postgres failure.
So the cucumber step 'And I follow "link title"' does substring matching, and will click on the first link it finds that contains "link title". Thus if you have 2 aspects, one called PostingTo and the other called NotPostingTo, doing 'And I follow "PostingTo"' may click a different link depending on what order the aspect links are in.
ka-sigh.
2011-09-11 15:14:56 -07:00

59 lines
2.4 KiB
Gherkin

@javascript
Feature: mentioning a contact from their profile page
In order to enlighten humanity for the good of society
As a rock star
I want to mention someone more cool than the average bear
Background:
Given I am on the home page
And a user with username "bob"
And a user with username "alice"
When I sign in as "bob@bob.bob"
And a user with username "bob" is connected with "alice"
And I have an aspect called "PostingTo"
And I have an aspect called "TotallyNotPostingAnythingHere"
And I have user with username "alice" in an aspect called "PostingTo"
And I have user with username "alice" in an aspect called "TotallyNotPostingAnythingHere"
And I am on the home page
Scenario: mentioning while posting to all aspects
Given I am on "alice@alice.alice"'s page
And I have turned off jQuery effects
And I click "Mention" button
And I expand the publisher in the modal window
And I append "I am eating a yogurt" to the publisher
And I press "Share" in the modal window
When I am on the aspects page
And I follow "PostingTo" within "#aspect_nav"
And I wait for the ajax to finish
Then I should see "I am eating a yogurt"
When I follow "Your Aspects" within "#aspect_nav"
And I follow "TotallyNotPostingAnythingHere" within "#aspect_nav"
And I wait for the ajax to finish
Then I should see "I am eating a yogurt"
Scenario: mentioning while posting to just one aspect
Given I am on "alice@alice.alice"'s page
And I have turned off jQuery effects
And I click "Mention" button
And I wait for the ajax to finish
And I expand the publisher in the modal window
And I append "I am eating a yogurt" to the publisher
And I press the aspect dropdown in the modal window
And I toggle the aspect "TotallyNotPostingAnythingHere" in the modal window
And I wait for the ajax to finish
And I press "Share" in the modal window
When I am on the aspects page
And I follow "PostingTo" within "#aspect_nav"
And I wait for the ajax to finish
Then I should see "I am eating a yogurt"
When I follow "Your Aspects" within "#aspect_nav"
And I follow "TotallyNotPostingAnythingHere" within "#aspect_nav"
And I wait for the ajax to finish
Then I should not see "I am eating a yogurt"