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