##// END OF EJS Templates
Asserts that the watchers list is updated....
Jean-Philippe Lang -
r11215:2ae7ddcb2453
parent child
Show More
@@ -178,10 +178,12 class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base
178
178
179 log_user('jsmith', 'jsmith')
179 log_user('jsmith', 'jsmith')
180 visit '/issues/1'
180 visit '/issues/1'
181 assert page.first('#sidebar').has_content?('Watchers (1)')
181 assert page.first('#sidebar').has_content?(user.name)
182 assert page.first('#sidebar').has_content?(user.name)
182 assert_difference 'Watcher.count', -1 do
183 assert_difference 'Watcher.count', -1 do
183 page.first('ul.watchers .user-3 a.delete').click
184 page.first('ul.watchers .user-3 a.delete').click
184 end
185 end
186 assert page.first('#sidebar').has_content?('Watchers (0)')
185 assert page.first('#sidebar').has_no_content?(user.name)
187 assert page.first('#sidebar').has_no_content?(user.name)
186 end
188 end
187
189
General Comments 0
You need to be logged in to leave comments. Login now