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