@@ -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 | |
@@ -98,10 +97,10 class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base | |||||
98 | end |
|
97 | end | |
99 |
|
98 | |||
100 | def test_watch_issue_via_context_menu |
|
99 | def test_watch_issue_via_context_menu | |
101 |
|
|
100 | log_user('jsmith', 'jsmith') | |
102 |
|
|
101 | visit '/issues' | |
103 |
|
|
102 | find('tr#issue-1 td.updated_on').click | |
104 |
|
|
103 | page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" | |
105 | assert_difference 'Watcher.count' do |
|
104 | assert_difference 'Watcher.count' do | |
106 | within('#context-menu') do |
|
105 | within('#context-menu') do | |
107 | click_link 'Watch' |
|
106 | click_link 'Watch' | |
@@ -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 | |
|
113 | log_user('jsmith', 'jsmith') | |||
|
114 | visit '/issues' | |||
|
115 | find('tr#issue-1 input[type=checkbox]').click | |||
|
116 | find('tr#issue-4 input[type=checkbox]').click | |||
|
117 | page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" | |||
114 | assert_difference 'Watcher.count', 2 do |
|
118 | assert_difference 'Watcher.count', 2 do | |
115 | log_user('jsmith', 'jsmith') |
|
|||
116 | visit '/issues' |
|
|||
117 | find('tr#issue-1 input[type=checkbox]').click |
|
|||
118 | find('tr#issue-4 input[type=checkbox]').click |
|
|||
119 | page.execute_script "$('tr#issue-1 td.updated_on').trigger('contextmenu');" |
|
|||
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