diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-30 02:23:14 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-30 02:23:14 +0000 |
commit | 001177f6816da459adc775d345e4ae43fa27f90a (patch) | |
tree | d60af516e6314037d1ed299386cfadf5bc252abe /test/system | |
parent | 3d6ab06b6c7dac5ff513c04df4a3b9b983b1fa7b (diff) | |
download | redmine-001177f6816da459adc775d345e4ae43fa27f90a.tar.gz redmine-001177f6816da459adc775d345e4ae43fa27f90a.zip |
add test "removing issue shows confirm dialog"
git-svn-id: http://svn.redmine.org/redmine/trunk@18552 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/issues_test.rb | 8 |
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) |