From 2949dd8796a14434586f5d23605cfbadfe6cae0b Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Wed, 17 Nov 2010 21:34:47 -0800 Subject: [PATCH] cucumber feature for accepting a contact request. --- features/manages_contact_requests.feature | 6 +++--- features/step_definitions/custom_web_steps.rb | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/features/manages_contact_requests.feature b/features/manages_contact_requests.feature index f4157c373..876ea754e 100644 --- a/features/manages_contact_requests.feature +++ b/features/manages_contact_requests.feature @@ -6,10 +6,10 @@ Feature: managing contact requests And I have one contact request Scenario: seeing contact requests - When I am on the home page - Then I should see "Manage (1)" in the header + When I am on the home page + Then I should see "Manage (1)" in the header - @javascript @wip + @javascript Scenario: accepting a contact request When I am on the home page And I follow "Manage (1)" diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index fe575c32a..9086b8d5e 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -27,6 +27,5 @@ When /^I wait for the aspects page to load$/ do end When /^I wait for the ajax to finish$/ do - pending - # wait_until { ??? } + wait_until { evaluate_script("$.active") == 0 } end