From aac744e4111b638ac58f29adcaa7f350aa1cc35f Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Sun, 17 Mar 2013 16:41:16 +0100 Subject: [PATCH] rebase to master --- features/step_definitions/context_list_steps.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/step_definitions/context_list_steps.rb b/features/step_definitions/context_list_steps.rb index 36319c50..8f8173b3 100644 --- a/features/step_definitions/context_list_steps.rb +++ b/features/step_definitions/context_list_steps.rb @@ -71,8 +71,10 @@ 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 + elem = page.find("a#link_edit_context_#{context.id}") + elem.should_not be_nil + page.should have_css("a#link_edit_context_#{context.id}", :visible=> true) end