From 001177f6816da459adc775d345e4ae43fa27f90a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 30 Sep 2019 02:23:14 +0000 Subject: [PATCH] add test "removing issue shows confirm dialog" git-svn-id: http://svn.redmine.org/redmine/trunk@18552 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/system/issues_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) 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)