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.
This commit is contained in:
parent
1d0bec11f7
commit
e1f80acdcf
2 changed files with 9 additions and 8 deletions
|
|
@ -12,9 +12,9 @@ Feature: mentioning a contact from their profile page
|
|||
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 "NotPostingTo"
|
||||
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 "NotPostingTo"
|
||||
And I have user with username "alice" in an aspect called "TotallyNotPostingAnythingHere"
|
||||
|
||||
And I am on the home page
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ Feature: mentioning a contact from their profile page
|
|||
Then I should see "I am eating a yogurt"
|
||||
|
||||
When I follow "Your Aspects" within "#aspect_nav"
|
||||
And I follow "NotPostingTo" 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"
|
||||
|
||||
|
|
@ -44,7 +44,8 @@ Feature: mentioning a contact from their profile page
|
|||
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 "NotPostingTo" 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
|
||||
|
|
@ -53,6 +54,6 @@ Feature: mentioning a contact from their profile page
|
|||
Then I should see "I am eating a yogurt"
|
||||
|
||||
When I follow "Your Aspects" within "#aspect_nav"
|
||||
And I follow "NotPostingTo" 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"
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ Feature: posting from the main page
|
|||
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 "NotPostingTo"
|
||||
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 "NotPostingTo"
|
||||
And I have user with username "alice" in an aspect called "TotallyNotPostingAnythingHere"
|
||||
|
||||
And I am on the home page
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ Feature: posting from the main page
|
|||
Then I should see "I am eating a yogurt"
|
||||
|
||||
When I follow "Your Aspects" within "#aspect_nav"
|
||||
And I follow "NotPostingTo" 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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue