From 7be37eabfcd66ee0dc35f8b8a879730071cf6676 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Tue, 27 Jul 2010 23:35:50 +0200 Subject: [PATCH] fix context scenario to match new confirm message when deleting a context --- features/step_definitions/context_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/context_steps.rb b/features/step_definitions/context_steps.rb index ba025d12..15864b48 100644 --- a/features/step_definitions/context_steps.rb +++ b/features/step_definitions/context_steps.rb @@ -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