Asserts that the watchers list is updated.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11445 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-02-20 20:49:01 +00:00
parent f88e4225c1
commit 2ae7ddcb24
1 changed files with 2 additions and 0 deletions

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