From fbfc9c7086a0bc75f8d32b5171c165c92b72d419 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Sat, 2 Mar 2013 11:44:54 +0100 Subject: [PATCH] do a small sleep to hopefully aviod an Element not found error --- features/step_definitions/context_list_steps.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/features/step_definitions/context_list_steps.rb b/features/step_definitions/context_list_steps.rb index 68217821..36319c50 100644 --- a/features/step_definitions/context_list_steps.rb +++ b/features/step_definitions/context_list_steps.rb @@ -71,6 +71,7 @@ When /^I edit the state of context "(.*?)" to closed$/ do |context_name| # wait for the form to go away page.should_not have_css("button#submit_context_#{context.id}", :visible => true) + sleep 0.10 # wait for the changed context to appear page.should have_css("a#link_edit_context_#{context.id}", :visible=> true) end