From e1f80acdcf4a8144d68801cb255a29f1c6fb9b10 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sun, 11 Sep 2011 15:14:56 -0700 Subject: [PATCH] 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. --- features/mentions_from_profile_page.feature | 11 ++++++----- features/posts_from_main_page.feature | 6 +++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/features/mentions_from_profile_page.feature b/features/mentions_from_profile_page.feature index b207f5bdc..bc09bd2e1 100644 --- a/features/mentions_from_profile_page.feature +++ b/features/mentions_from_profile_page.feature @@ -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" diff --git a/features/posts_from_main_page.feature b/features/posts_from_main_page.feature index 10489a3fc..73167418c 100644 --- a/features/posts_from_main_page.feature +++ b/features/posts_from_main_page.feature @@ -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"