From f0ecef7f1a50889407df3696d472571c700b6605 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sun, 31 Jul 2011 12:40:36 -0700 Subject: [PATCH] Make connects_users.feature slightly less flaky --- features/connects_users.feature | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/features/connects_users.feature b/features/connects_users.feature index 0ae7c99bf..39c3c45af 100644 --- a/features/connects_users.feature +++ b/features/connects_users.feature @@ -93,23 +93,18 @@ Feature: sending and receiving requests Then I should see "Mention" Then I should not see "Message" - Scenario: should see "Add to aspect" and not see mention if on a follower's page - When I sign in as "alice@alice.alice" + Scenario: interacting with a follower's profile page + Given I sign in as "alice@alice.alice" And I am on "bob@bob.bob"'s page Then I should see "Add to aspect" - Then I should not see "Mention" - Then I should not see "Message" + And I should not see "Mention" + And I should not see "Message" - Scenario: should see "Add to aspect" & mention & message on mutual contacts - When I sign in as "alice@alice.alice" - And I am on "bob@bob.bob"'s page - - And I add the person to my 1st aspect + When I add the person to my 1st aspect And I add the person to my 2nd aspect - - And I am on "bob@bob.bob"'s page - + # should wait for ajax to finish here, but infinite scroll is screwing that up. + When I go to "bob@bob.bob"'s page Then I should see "In 2 aspects" - Then I should see "Mention" - Then I should see "Message" + And I should see "Mention" + And I should see "Message"