fix context scenario to match new confirm message when deleting a context

This commit is contained in:
Reinier Balt 2010-07-27 23:35:50 +02:00
parent e2841e31eb
commit 7be37eabfc

View file

@ -36,7 +36,7 @@ When /^I delete the context "([^\"]*)"$/ do |context_name|
context = @current_user.contexts.find_by_name(context_name)
context.should_not be_nil
click_link "delete_context_#{context.id}"
selenium.get_confirmation.should == "Are you sure that you want to delete the context '#{context_name}'?"
selenium.get_confirmation.should == "Are you sure that you want to delete the context '#{context_name}'? Be aware that this will also delete all actions in this context!"
wait_for do
!selenium.is_element_present("delete_context_#{context.id}")
end