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