@@ -193,12 +193,14 class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base | |||||
193 | def test_watch_issue_via_context_menu |
|
193 | def test_watch_issue_via_context_menu | |
194 | log_user('jsmith', 'jsmith') |
|
194 | log_user('jsmith', 'jsmith') | |
195 | visit '/issues' |
|
195 | visit '/issues' | |
|
196 | assert page.has_css?('tr#issue-1') | |||
196 | find('tr#issue-1 td.updated_on').click |
|
197 | find('tr#issue-1 td.updated_on').click | |
197 | page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" |
|
198 | page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" | |
198 | assert_difference 'Watcher.count' do |
|
199 | assert_difference 'Watcher.count' do | |
199 | within('#context-menu') do |
|
200 | within('#context-menu') do | |
200 | click_link 'Watch' |
|
201 | click_link 'Watch' | |
201 | end |
|
202 | end | |
|
203 | assert page.has_css?('tr#issue-1') | |||
202 | end |
|
204 | end | |
203 | assert Issue.find(1).watched_by?(User.find_by_login('jsmith')) |
|
205 | assert Issue.find(1).watched_by?(User.find_by_login('jsmith')) | |
204 | end |
|
206 | end |
General Comments 0
You need to be logged in to leave comments.
Login now