From e1af252f235ed6a54408ec61768e2bc501a1fc0f Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Tue, 8 Mar 2011 23:53:00 +0100 Subject: [PATCH] small improvement --- features/step_definitions/todo_steps.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/step_definitions/todo_steps.rb b/features/step_definitions/todo_steps.rb index 29c2cf1f..58abb4fc 100644 --- a/features/step_definitions/todo_steps.rb +++ b/features/step_definitions/todo_steps.rb @@ -219,8 +219,11 @@ end Then /^the container for the context "([^"]*)" should not be visible$/ do |context_name| context = @current_user.contexts.find_by_name(context_name) context.should_not be_nil + + wait_for_ajax + xpath = "xpath=//div[@id=\"c#{context.id}\"]" - wait_for_ajax selenium.is_element_present(xpath).should be_false + selenium.is_element_present(xpath).should be_false end Then /^a confirmation for adding a new context "([^"]*)" should be asked$/ do |context_name|