Browse Source

Asserts that the watchers list is updated.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11445 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.3.0
Jean-Philippe Lang 11 years ago
parent
commit
2ae7ddcb24
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      test/ui/issues_test.rb

+ 2
- 0
test/ui/issues_test.rb View File

@@ -178,10 +178,12 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base

log_user('jsmith', 'jsmith')
visit '/issues/1'
assert page.first('#sidebar').has_content?('Watchers (1)')
assert page.first('#sidebar').has_content?(user.name)
assert_difference 'Watcher.count', -1 do
page.first('ul.watchers .user-3 a.delete').click
end
assert page.first('#sidebar').has_content?('Watchers (0)')
assert page.first('#sidebar').has_no_content?(user.name)
end


Loading…
Cancel
Save