summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/system/issues_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb
index c9228fd1d..3f3edf4b5 100644
--- a/test/system/issues_test.rb
+++ b/test/system/issues_test.rb
@@ -220,6 +220,14 @@ class IssuesTest < ApplicationSystemTestCase
assert_equal 'CF value', issue.custom_field_value(field)
end
+ test "removing issue shows confirm dialog" do
+ log_user('jsmith', 'jsmith')
+ visit '/issues/1'
+ page.accept_confirm /Are you sure/ do
+ page.first('#content a.icon-del').click
+ end
+ end
+
def test_remove_issue_watcher_from_sidebar
user = User.find(3)
Watcher.create!(:watchable => Issue.find(1), :user => user)