@@ -71,8 +71,7 class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base | |||||
71 | within('form#new-watcher-form') do |
|
71 | within('form#new-watcher-form') do | |
72 | assert page.has_content?('Some One') |
|
72 | assert page.has_content?('Some One') | |
73 | fill_in 'user_search', :with => 'watch' |
|
73 | fill_in 'user_search', :with => 'watch' | |
74 | sleep(2) # autocomplete delay |
|
74 | assert page.has_no_content?('Some One') | |
75 | assert !page.has_content?('Some One') |
|
|||
76 | check 'Some Watcher' |
|
75 | check 'Some Watcher' | |
77 | click_button 'Add' |
|
76 | click_button 'Add' | |
78 | end |
|
77 | end | |
@@ -111,12 +110,12 class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base | |||||
111 | end |
|
110 | end | |
112 |
|
111 | |||
113 | def test_bulk_watch_issues_via_context_menu |
|
112 | def test_bulk_watch_issues_via_context_menu | |
114 | assert_difference 'Watcher.count', 2 do |
|
|||
115 |
|
|
113 | log_user('jsmith', 'jsmith') | |
116 |
|
|
114 | visit '/issues' | |
117 |
|
|
115 | find('tr#issue-1 input[type=checkbox]').click | |
118 |
|
|
116 | find('tr#issue-4 input[type=checkbox]').click | |
119 |
|
|
117 | page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" | |
|
118 | assert_difference 'Watcher.count', 2 do | |||
120 | within('#context-menu') do |
|
119 | within('#context-menu') do | |
121 | click_link 'Watch' |
|
120 | click_link 'Watch' | |
122 | end |
|
121 | end |
General Comments 0
You need to be logged in to leave comments.
Login now