prevent assert_difference failure of test_watch_issue_via_context_menu at UI IssuesTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11808 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
aaa37be223
commit
6d4e43f3fb
@ -193,12 +193,14 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
|
|||||||
def test_watch_issue_via_context_menu
|
def test_watch_issue_via_context_menu
|
||||||
log_user('jsmith', 'jsmith')
|
log_user('jsmith', 'jsmith')
|
||||||
visit '/issues'
|
visit '/issues'
|
||||||
|
assert page.has_css?('tr#issue-1')
|
||||||
find('tr#issue-1 td.updated_on').click
|
find('tr#issue-1 td.updated_on').click
|
||||||
page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');"
|
page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');"
|
||||||
assert_difference 'Watcher.count' do
|
assert_difference 'Watcher.count' do
|
||||||
within('#context-menu') do
|
within('#context-menu') do
|
||||||
click_link 'Watch'
|
click_link 'Watch'
|
||||||
end
|
end
|
||||||
|
assert page.has_css?('tr#issue-1')
|
||||||
end
|
end
|
||||||
assert Issue.find(1).watched_by?(User.find_by_login('jsmith'))
|
assert Issue.find(1).watched_by?(User.find_by_login('jsmith'))
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user