mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 13:00:25 +01:00
simplify IssuesSystemTest#test_bulk_watch_issues_via_context_menu
git-svn-id: http://svn.redmine.org/redmine/trunk@19860 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -292,6 +292,11 @@ class IssuesSystemTest < ApplicationSystemTestCase
|
||||
def test_bulk_watch_issues_via_context_menu
|
||||
log_user('jsmith', 'jsmith')
|
||||
visit '/issues'
|
||||
jsmith = User.find_by_login('jsmith')
|
||||
issue1 = Issue.find(1)
|
||||
issue4 = Issue.find(4)
|
||||
assert_not issue1.reload.watched_by?(jsmith)
|
||||
assert_not issue4.reload.watched_by?(jsmith)
|
||||
assert page.has_css?('tr#issue-1')
|
||||
assert page.has_css?('tr#issue-4')
|
||||
find('tr#issue-1 input[type=checkbox]').click
|
||||
@@ -307,8 +312,8 @@ class IssuesSystemTest < ApplicationSystemTestCase
|
||||
assert page.has_css?('tr#issue-1')
|
||||
assert page.has_css?('tr#issue-4')
|
||||
end
|
||||
assert Issue.find(1).watched_by?(User.find_by_login('jsmith'))
|
||||
assert Issue.find(4).watched_by?(User.find_by_login('jsmith'))
|
||||
assert issue1.reload.watched_by?(jsmith)
|
||||
assert issue4.reload.watched_by?(jsmith)
|
||||
end
|
||||
|
||||
def test_bulk_update_issues
|
||||
|
||||
Reference in New Issue
Block a user