From 088e2dfdb4d4df962cd8ea983af5f7d1b8986b0d Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Thu, 14 Jul 2011 19:09:14 -0700 Subject: [PATCH] Maybe...we're not waiting long enough on CI? It is a very slow box. --- features/step_definitions/custom_web_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index 9bdd48459..63c0e9b34 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -160,7 +160,7 @@ Then /^the "([^"]*)" field(?: within "([^"]*)")? should be filled with "([^"]*)" end Then /^I should see (\d+) posts$/ do |n_posts| - all("#main_stream .stream_element").length.should == n_posts.to_i + wait_until(10) { all("#main_stream .stream_element").length == n_posts.to_i } end And /^I scroll down$/ do