small improvement

This commit is contained in:
Reinier Balt 2011-03-08 23:53:00 +01:00
parent 6a9b3e28d5
commit 793f7786f1

View file

@ -222,8 +222,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|