mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-21 16:01:14 +00:00
add test "removing issue shows confirm dialog"
git-svn-id: http://svn.redmine.org/redmine/trunk@18552 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3d6ab06b6c
commit
001177f681
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user